How to stop page refresh on button click without using AJAX in ASP.Net

Last Reply on Nov 14, 2014 02:00 AM By Azim

Posted on Nov 13, 2014 05:42 AM

I have a "div" whose visibility is controlled by Javascript.
There is a button inside that "div".
When I click on button, page refresh and due to this "div" hides.

I want when I click on button, "div" should not hide.

Please reply how to achieve it without using javascript

You are viewing reply posted by: Azim on Nov 14, 2014 02:00 AM.
Posted on Nov 14, 2014 02:00 AM

There are two ways you can solve your problem.

Using Ajax UpdatePanel and Ajax WebMethod.

If you want to Submit the Data without refreshing the page then please refer this article.

Insert (Update) Data to Database with jQuery AJAX and WebMethod in ASP.Net

There is no any other way except these above these two methods a by which your Div tag remain visible.