8/5/2026 4:06:13 PM
|
| |
| slxdeveloper.com Community Forums |
|
| |
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Textbox MaxLength property
Posted: 20 Mar 08 12:48 PM
|
Under v7.2.1 the MaxLength property for TextBox object does not seem to work if MultiLine = True.
Has anyone used the property?
|
|
|
|
Re: Textbox MaxLength property
Posted: 21 Mar 08 1:48 PM
|
I am seeing the same results. A quick google turned up this: http://www.codeproject.com/KB/custom-controls/textlengthvalidator.aspx - Looks like an asp.net limitation as opposed to an slx limitation.
Actually what happens is that the asp.net multiline textbox gets rendered as an HTML text area that has no maxlength property. So another method must be used like javascript or this RegularExpressionValidator - where the 200 is the length you want to limit - this control will fire on a postback, so it doesn't actually limit how much people can type but will let them know they typed too much when exiting the control: (Leading Less sign omited as forum want to render as a tag.) asp:RegularExpressionValidator ID="txtConclusionValidator1" ControlToValidate="txtAddContactEmail" Text="Exceeding 200 characters" ValidationExpression="^[\s\S]{0,200}$" runat="server" /> |
|
|
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|