I want to make an ASP.NET multilined TextBox to trigger the button1_Click() event instead of going newline when ENTER key is pressed. Note that this button is not in a form tag.
Asked
Active
Viewed 578 times
2 Answers
0
Do it with onkeypress and check it if it was enter do button1_performclick().that will do the job for you

Abadis
- 2,671
- 5
- 28
- 42
-
`PerformClick()` method is not found in Web, its for windows, and the question is tagged with asp.net. – yogi Jun 30 '12 at 10:24
-
So sorry,So you need to use javascript instead – Abadis Jun 30 '12 at 10:25