Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

TextBox bug

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jack - 05 Feb 2008 08:20 GMT
Here is one example of bug in Asp.net Textbox control.

I have set the max length of the text box to 255. I tried typing
characters in text. It didnt accepted beyond 255 characters.

But when i copy and pasted some paragraph it accepted more than 1000
characters in the textbox.

what would be the alternative to this to check this validation without
making a server call.
Roland Dick - 05 Feb 2008 08:30 GMT
Hi Jack,

jack schrieb:
> But when i copy and pasted some paragraph it accepted more than 1000
> characters in the textbox.

I believe that is not a bug in the ASP.NET textbox but rather a bug in
the browser. One possible solution is a JavaScript that checks the
length of the string entered.

That said - never rely solely on client-side checks. Do a server side
check as well; the user could have JS deactivated, someone might try to
tamper with your input etc. etc.

Hope this helps,

Roland
jack - 11 Feb 2008 17:41 GMT
Thanks Roland for replying me

but if the validation control is been provided, (assuming that the
client end has the java enabled) then this functionality of of max
text length should work. even with i copy and paste the text in the
text box..

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.