Setting textbox width from server side

H

Harry

Hi

I'm trying to set the width of a textbox from the server side. I've tried

dim tb as new Textbox()
tb.width = "80"

but this gives me an error saying that the
"value of string cannot be converted to 'System.Web.UI.WebControls.Unit'"

How would I set the width? I've also tried

tb.width.pixels(80) and that does not seem to change the width.

Thanks
Harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top