J
Jacques Leclerc
What's the trick to dynamically setting the width of a textbox?
In the code behind page Page_Load function I'm trying to dynamically set the
width of a textbox.
TextBox1.Width = "75px"
I keep getting an error that the size has to be in WebControls.Units.
I tried doing a CType to cast the value as a WebControl Unit and also tried
using "75" and 75. Neither worked.
What am I missing?
In the code behind page Page_Load function I'm trying to dynamically set the
width of a textbox.
TextBox1.Width = "75px"
I keep getting an error that the size has to be in WebControls.Units.
I tried doing a CType to cast the value as a WebControl Unit and also tried
using "75" and 75. Neither worked.
What am I missing?