Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2007, 01:01 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default 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......
__________________
thanks......
 
Old June 5th, 2007, 01:48 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
 
Old June 5th, 2007, 01:56 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
 
Old June 5th, 2007, 08:41 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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"
 
Old June 7th, 2007, 12:25 AM
Registered User
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to knightmare102
Default

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

 
Old June 14th, 2007, 01:55 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

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



thanks......





Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Box .text Property Displays conflicting Valus JPOhlman Visual Basic 2005 Basics 3 August 23rd, 2006 02:39 PM
Can't set text property of dynamic text box sreerajrs ASP.NET 1.0 and 1.1 Professional 1 May 31st, 2006 09:39 PM
Max length venkata MySQL 2 May 3rd, 2006 12:39 AM
max length of textbox? JelfMaria VB How-To 3 May 10th, 2005 04:02 PM
VS.NET - Using a multiline text box VSnewbie Classic ASP Databases 3 September 10th, 2004 09:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.