Subject: How to manipulate width of textbox programmaticall
Posted By: hchlebowski Post Date: 1/2/2006 8:34:06 PM
Hi guys,
How do you manipulate width, height and bgColor of  a textbox programmatically in aspx Web Page's code-behind form?
I tried:

 Textbox1.Width.ToString = 742px

And get “Expression is a value and therefore cannot be the target of an assignment” in reference to the underlined.

Drop me a line, thanks Henry


Reply By: chafor Reply Date: 1/11/2006 3:59:41 PM
use the proprety in the ControlStyle...
Textbox1.ControlStyle.Width = 100;


Go to topic 16722

Return to index page 397
Return to index page 396
Return to index page 395
Return to index page 394
Return to index page 393
Return to index page 392
Return to index page 391
Return to index page 390
Return to index page 389
Return to index page 388