Here is how to call Javascript that will disable a button after it is clicked to prevent double submission. The problem is that if you just disable it in javascript it messes up the postback.
LoginButton.Attributes.Add("onClick", "disableButtons();" +
GetPostBackEventReference(LoginButton).ToString());
Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts
Monday, February 21, 2005
disabling buttons in javascript with asp.net
Labels:
dotnet,
javascript
Wednesday, January 29, 2003
tracking down javascript errors in ie today. first of all in ie when you get an error double click the little caution icon in the status bar. then you often have to use the previous button to get to a meaningful error (usually the last error is on line 1 where there is no code) and then use ctrl-g in notepad (win 2k pro) to get to the line. also in dreamweaver mx ctl+' will do braces matching in javascript, and it has code insight for custom libraries (struts in my case).
Labels:
javascript
Subscribe to:
Comment Feed (RSS)