Disable button on form submission
I have a button that I would like to disable when the form submits to prevent the user submitting multiple times.
I have a button that I would like to disable when the form submits to prevent the user submitting multiple times.
In my ASP.NET User Control I’m adding some JavaScript to the window.onload event:
we have 400 to 500 hundred emails, when we concatenate them and put them in mailto: it does not work, browser automatically adds “…” in between emails and clicking link does not work.
I want to call static server-side methods from JS so i decide to use ScriptManager control on my site.
So i have a master page, with such structure:
In an asp.net user control I have a button:
I have a form with a textbox and a button. IE is the only browser that will not submit the form when Enter is pressed (works in FF, Opera, Safari, Chrome, etc.). I found this javascript function to try to coax IE into behaving; but no avail:
I know there are plenty of answers surrounding this topic but I just cannot get this to work.
How can I call a javascript function from code behind?
The most popular response is “ScriptManager.RegisterStartupScript” however, that does not work in my situation.
The following code runs very well for this test XML page: