HTML Code of the Control - I need the "Width" property to be written here when the value is changed in code
Code:
Code
My textCode:
C#
public class ServerControl1 : TextBox
{
public override string Text
{
get { return base.Text; }
set
{
base.Text = value;
//Dynamically change the Textbox Control's Width based on the length of the Text
this.Width = value.Length * 20;
}
}
}Thanks,
Joe

Answers
Know the answer? Post it. Somebody with the same question will find it here.