Setting textbox width from server side

  • Thread starter Thread starter Harry
  • Start date Start date
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
 
Back
Top