Enter key
i have a textbox, when i typed text in textbox and press search button this works fine for searching, but if i typed something in textbox and press enter then click on search button it logging out. I want if i have typed something in textbox then presses enter and then clicked on search button it should work fine but it is not working. I dont want that pressing enter will submit data and give result except i want press enter then clicked on button then work fine.
SenthilkumarPosted Apr 2, 2012, 2:28 AM
I already explained about the way to suppress this.
For info:
http://www.cs.tut.fi/~jkorpela/forms/enter.html
sunakshi saxenaPosted Apr 2, 2012, 1:15 AM
Sam HobbsPosted Mar 30, 2012, 2:31 PM
SenthilkumarPosted Mar 30, 2012, 10:15 AM
In the web form, when you press enter button the control focus may go to some default to any control like button. If it is logout but then obviously it will fire the server side event and it logged out.
You need to focus your search button when press on enter key. You can get the enter key value as 13 and you can write the onkeypress event in the search box and if the key value is 13 then give the focus to your search button.
Mayur GujrathiPosted Mar 30, 2012, 9:11 AM