Prathyusha Dwibhashi
Prathyusha Dwibhashi

Reputation: 157

How to stop page refresh on button click but my button click event should fire

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

Answers (1)

Mohammad
Mohammad

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

Related Questions