p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Professional (http://p2p.wrox.com/forumdisplay.php?f=57)
-   -   make html button default (http://p2p.wrox.com/showthread.php?t=49347)

sansircar October 23rd, 2006 03:17 PM

make html button default
 
I have an asp button and a html button and a few other text boxes on an .aspx page.
I have added no specific code, and the asp button has become the default button i.e. if i type something on the text boxes and click enter, the asp button gets executed.
How can i make the html button the same i.e. make the html button the default button.

thanks a lot for your help


dparsons October 23rd, 2006 04:25 PM

Write a javascript to capture the enter the key being pressed and raise the HTML buttons functionality.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature


All times are GMT -4. The time now is 10:13 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.