Hello,
Iam developing a application in .NET 2.0 Framework.
I have a multiline text-box and the user can enter anything but should not be able to use 'Enter' or 'carriage Return' . How to disable this for the text- box?
Any suggestion would be helpful.
Regards,
Loading
Lalit MPosted Mar 22, 2010, 7:49 AM
http://www.aspsnippets.com/Articles/Disable-Enter-key-in-TextBox-to-avoid-postback-in-ASP.Net.aspx
Disable Carriage return code sample here
Sailaja YPosted Mar 24, 2010, 12:52 AM
I dont need any new line in my text box.I restricted the number of characters in it.
So the above link helped to solve the issue. Thanks!
Sailaja YPosted Mar 24, 2010, 12:51 AM
Thanks a lot. The link helped me to solve the problem.
Sam HobbsPosted Mar 22, 2010, 9:49 PM