Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,

I am working in SP 2013 and i have a set of 4 asp buttons in my visual webpart. One such button is this
ASP.NET
<asp:Button ID="btnClearfilter" runat="server" Text="Clear Filter" OnClick="BtnClearfilter_Click" CssClass="submitBtn floatLeft marginRight10" />


Another buttton
ASP.NET
<asp:Button ID="btnExport" runat="server" Text="Export" OnClick="BtnExport_Click" CssClass="submitBtn floatLeft marginRight10" />                            


which exports the data to excel. But after the export data no other button clicks seems to work . When i inspected the page i found the button html like this

JavaScript
onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl29$g_12d8171b_8f06_4f2f_842e_b2924f975e25$btnExport", "", true, "", "", false, false))



Can anyone please tell me why the DoPostBackWithOptions are coming and why other button clicks are not working. Also all the buttons have the same before the export process.


Thanks in advance
Posted
Updated 18-Mar-15 0:47am
v4
Comments
[no name] 18-Mar-15 6:46am    
Are you using update panel ?
Arjun Menon U.K 18-Mar-15 6:57am    
No... just ascx page
[no name] 18-Mar-15 7:14am    
Ref this link : Click here
Arjun Menon U.K 18-Mar-15 7:18am    
Hi Rajeesh,

I did check that site before posting here and am sure i am not doing anything like it in code behind.

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