|
There is only one solution
With an html button, a server-side button, set the server-side button to be invisible
When pressing the html button, write a JS, html button name. Enable = false, and perform the click process of the server-side button
After performing the postback, write a js code html button name on the server side. Enable = true
The specific code of the web form is as follows:
js code
function Send (val)
{
document.all.BtnSend.click ();
document.all.BtnSending.disabled = true;
}
form
<form id = "FormRoleSet" method = "post" runat = "server">
<!-Here is the html button->
<input style = "WIDTH: 141px; HEIGHT: 20px" id = "BtnSending" name = "BtnSending" onclick = "Send ()"
type = "button" value = "Send mail">
<!-Here is the server-side button->
<asp: button id = "BtnSend" style = "DISPLAY: none" runat = "server" Width = "133px" Text = "Send Email"> </ asp: button>
</ form>
After processing on the server side, go to your page itself or use js to display the button. |
|