Disabling And Enabling A Button During Postback In Asp.net
I'm trying to disable a button and change its text while doing a postback and then i want to change the text back to normal when postback is complete. ,
ClientScript.GetPostBackEventReference(button, string.Empty),text));
}
Solution 2:
You forgot to return true
.
<asp:ButtonID="b_Generate"runat="server"onclick="b_Generate_Click"OnClientClick="this.disabled = true; this.value = 'Please Wait...'; return true;"Text="Generate PPT"UseSubmitBehavior="false"style="z-index: 1; left: 05px; top: 50px; position: absolute; width: 110px;"BorderStyle="Ridge"Font-Bold="True"ToolTip="click here"
/>
Post a Comment for "Disabling And Enabling A Button During Postback In Asp.net"