?
Solved

Default button no longer default after disable then enable

Posted on 2011-03-02
3
Medium Priority
?
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

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

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…
Suggested Courses

764 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