Focus on desired button..?
-
HI! Dear i have three textbox (textbox1,textbox2,textbox3) and three button (button1, button2, button3) on my web page now i want when i type some text in textbox1 and press enter then button1 press and when i type some text in textbox2 and press enter then button2 press without clicking by the Cursor on button Please help me...
-
HI! Dear i have three textbox (textbox1,textbox2,textbox3) and three button (button1, button2, button3) on my web page now i want when i type some text in textbox1 and press enter then button1 press and when i type some text in textbox2 and press enter then button2 press without clicking by the Cursor on button Please help me...
ASP.NET will show weird results when pressing enter key. In classical ASP programming this can be achieved by putting different forms for controls. But by generally ASP.NET won't support multiple server forms. So you need to go with some javascript. I have documented this problem clearly here[^]. You can use the class library provided with the article.