Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello,
my requirement is i want to stop page refresh on button click but my button click event should fire.

What I have tried:

div style="float: left;"><asp:button id="btnAnnotatedCRF" runat="server" text="Annotated CRF Book" cssclass="buttonbdrlarge" onclick="btnAnnotatedCRF_Click" onclientclick="return ValiDateAnnotatedSubjectCount();">
Posted
Updated 4-Aug-22 2:57am

1 solution

What you are talking of is called XMLHttpRequest (now more commonly as Ajax). Though similar outcome can also be achieved via a callback. You need to study about them, learn and implement.

You can start with either using AjaxControlToolkit or jQuery Ajax.

Start from here: ASP.NET Ajax : Enhanced Interactivity and Responsiveness | Microsoft Docs[^]

try!
 
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