Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiline Maxlength

Status
Not open for further replies.

Brooker22

Programmer
Jun 16, 2009
6
GB
Hello,

Okay i'm pretty new to .net but, i'm aware the maxlength property is ignored in multiline textboxes. I'm also aware that their is a java script solution to the problem, although i don't want to use java. (wouldn't fit the flow of the webpage).

The last alternative i believe is a regular expression validator? which i'm pretty clueless about?

My textbox looks as follows:

<asp:TextBox ID="EditorsTextbox" runat="server" TextMode="MultiLine" MaxLength="195" Width="90%" Rows="8"></asp:TextBox>

Pretty bog standard, how would i go about coding a regex validator for this box to set a maxlength of say 300?

Thanks in advance.
 
how would javascript interrupt the flow of the webpage? This is required for any type of client side experience. webforms produces quite a bit of javascript as it is.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top