Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2006, 03:17 PM
Authorized User
 
Join Date: Jun 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old October 23rd, 2006, 04:25 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
make DW 2004 my default editor for ASP/JavaScript crmpicco Dreamweaver (all versions) 2 October 24th, 2005 11:40 AM
Default Submit Button alyeng2000 ASP.NET 1.x and 2.0 Application Design 5 March 18th, 2005 08:51 PM
Make the default value change marcin2k Access VBA 0 February 21st, 2005 05:22 PM





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