0

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"/>

1 Answers1

1

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?

Community
  • 1
  • 1
Mohammad
  • 132
  • 5