Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<asp:Button ID="btn_prepareExp" runat="server" CssClass="but_All_default" 
            Text="Prepare Expense Advice" onclick="btn_prepareExp_Click"  OnClientClick="if (!confirm('Are You Sure??')) return; this.disabled=true;this.value='PleaseWait..';"
            Visible="False"   />



This is button coding but my Button is Post Back not going in server side Please help me...
Posted
Updated 14-Mar-13 21:24pm
v2
Comments
sri senthil kumar 15-Mar-13 3:49am    
have you used asp validators??

Try this:
ASP.NET
<asp:Button ID="btn_prepareExp" runat="server" CssClass="but_All_default"
            Text="Prepare Expense Advice" onclick="btn_prepareExp_Click"  OnClientClick="if (!confirm('Are You Sure??')) return; this.disabled=true;this.value='PleaseWait..'; return true;"
            Visible="False"   />



--Amit
 
Share this answer
 
Add this attribute to Button control in order to call both client and server side click events.

UseSubmitBehavior="true"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900