Reputation: 157
My requirement is i want to stop page refresh on button click but my button click event should fire. i have tried this .But click event is not getting fired.Please suggest!!
<asp:Button DataField="GetHistory" OnClick="btn_getHistory_Click" ID="btn_getHistory" runat="server" onclientclick="return false;" autopostback="false" xmlns:asp="#unknown"/>
Upvotes: 0
Views: 428
Reputation: 132
try with the input element instead of asp button but if you go with asp controls then you should use ajax jquery for your event of button or you can use update panel
How do I use updatePanel in asp.net without refreshing all page?
Upvotes: 1