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,
Disable 'enter' key while typing the data in textbox.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Mar 22, 2010, 3:49 AM EDT
http://www.aspsnippets.com/Articles/Disable-Enter-key-in-TextBox-to-avoid-postback-in-ASP.Net.aspx
Disable Carriage return code sample here
Sam HobbsRank #107 · 20.5K reputationPosted Mar 22, 2010, 5:49 PM EDT
Sailaja Y37 reputationPosted Mar 23, 2010, 8:51 PM EDT
Thanks a lot. The link helped me to solve the problem.
Sailaja Y37 reputationPosted Mar 23, 2010, 8:52 PM EDT
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!