p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/asp-net-2-0-professional-215/)
-   -   max length property of multiline text box (http://p2p.wrox.com/asp-net-2-0-professional/58720-max-length-property-multiline-text-box.html)

MunishBhatia June 5th, 2007 02:01 AM

max length property of multiline text box
 
hello to all
i took multiline textbox in my form and sets its max property to say 100. but at run time it is not working as in case of text box.
guide please.


thanks......

planoie June 5th, 2007 02:48 AM

An ASP.NET <asp:textbox> control is rendered in two ways based on the mode:

single line: <input type="text">
multiline: <textarea>

The <textarea> HTML control does not support the maxlength property.

-Peter

mike_remember June 5th, 2007 02:56 AM

Well this issue has been raised many times, you can use javascript functions to restrict user entering text upto the length specified.

Regards
Mike

Don't expect too much, too soon.

zaghmout June 5th, 2007 09:41 AM

javascript + a word counter :)

no other solution mate :)....

and check on posting the sting length

Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"

knightmare102 June 7th, 2007 01:25 AM

its necessarily to write javascript code for this multiline(maxlength) property for text box


MunishBhatia June 14th, 2007 02:55 AM

well thanks to all
i write javascript function for it to check max length. it is working properly.



thanks......


All times are GMT -4. The time now is 01:37 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.