Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Textbox MaxLength property
Frank Chaffin
Posts: 475
 
Textbox MaxLength propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
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?
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Textbox MaxLength propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
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" />
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Textbox MaxLength propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Mar 08 3:21 PM
Steve,

Thanks for the information. I guess SLX is off the hook on the one.
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/22/2025 8:56:24 AM