When using a MultiLine TextBox (which generates a TextArea) setting the MaxLength property has no effect. What is the best workaround? I\'d like to get basic, intended funct
If you don't care about older browsers (see supported browsers here), you can set MaxLength normally like this
and force it to be printed out to the HTML
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) txt1.Attributes.Add("maxlength", txt1.MaxLength.ToString()); }