Solved

Default button no longer default after disable then enable

Posted on 2011-03-02
3
281 Views
Last Modified: 2012-05-11
My web page has a default button. The button disables itself after a click to prevent duplicate clicks. If the processing fails it enables again to allow a retry but the button no longer behaves like the default button (i.e. I can't press the enter key to activate it) after it has been enabled again. Is there a way to make it the default button again after being re-enabled?
0
Comment
Question by:Russ Suter
3 Comments
 
LVL 9

Accepted Solution

by:
rawinnlnx9 earned 500 total points
ID: 35022870
In the form tag you can just set the default:

<form DefaultFocus ="TextBox1" runat ="server">

0
 
LVL 82

Expert Comment

by:leakim971
ID: 35022917
0
 
LVL 9

Expert Comment

by:mayank_joshi
ID: 35024952
on page load write:-

Page.RegisterHiddenField( "__EVENTTARGET", Button1.ClientID );

Open in new window


where Button1 is the ID of Defautl Button.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now