For Asp .Net Button Click
<asp:Button
id="abc"
runat="server"
UseSubmitBehavior="false"
OnClientClick="this.disabled='true';this.value='Please Wait...';"
asp:Button/>
For Asp .Net Image Button
<asp:ImageButton
id="abc"
ImageUrl="..."
runat="server"
/>
Put below code in page load for specific button:
protected void Page_Load(object sender, EventArgs e)
{
abc.Attributes.Add("onclick","this.disabled='true';" +ClientScript.GetPostBackEventReference(abc,null) +";this.src='Images/wait.png' ; ");
}
<asp:Button
id="abc"
runat="server"
UseSubmitBehavior="false"
OnClientClick="this.disabled='true';this.value='Please Wait...';"
asp:Button/>
For Asp .Net Image Button
<asp:ImageButton
id="abc"
ImageUrl="..."
runat="server"
/>
Put below code in page load for specific button:
protected void Page_Load(object sender, EventArgs e)
{
abc.Attributes.Add("onclick","this.disabled='true';" +ClientScript.GetPostBackEventReference(abc,null) +";this.src='Images/wait.png' ; ");
}
No comments:
Post a Comment