New feature: ASP.NET Memo Field supports Max Length (coming soon in v2013 vol 1)

ASP.NET Team Blog
29 May 2013

The DevExpress ASP.NET Memo field now helps you to limit the number of characters typed into it:

DevExpressASPNETMemoMaxLength

Server check

A nice feature of the DevExpress ASP.NET Memo control is that it will check the length on the sever side. This way, someone cannot fraudulently try to change the limit on client-side.

While it’s possible to use JavaScript to validate form data entry, this approach can’t be totally relied upon (JavaScript may be disabled, and form data may not be trustworthy if the client has been affected by a nefarious script). Server–side validation is a much safer option, and could be used, among other things, to check that the amount of data submitted isn’t too long. – SitePoint

Uses Browser

The DevExpress ASP.NET Memo control will try to use the default browser behavior for enforcing the MaxLength limit. Otherwise, it will default to using an internal script, if necessary.

Why set a limit?

Setting a limit is a usability feature (for a famous example, think of Twitter’s 140 character limit for tweets). This way, if your website visitors are typing a phone number or postal code, then you can help them by indicating the maximum number of characters they can enter.

Save time and money...

Save time and money with high quality pre-built components for ASP.NET, Windows Forms, WPF, Silverlight and VCL as well as IDE Productivity Tools and Business Application Frameworks, all backed by world-class service and support. Our technologies help you build your best, see complex software with greater clarity, increase your productivity and create stunning applications for Windows and Web in the shortest possible time.

Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.