I have html form which default value is display:none.
Im showing it with jquery.
There is button with C# code behind. When its executing page is reloading and my form is disappearing(display:none).
How i can execute c# code without page reload ?
I have html form which default value is display:none. Im showing it with jquery.
Share
Your c# code is server side and the page reloads to be able to call it. If you don’t want that you’ll need to use some AJAX.
See this tutorial: http://www.asp.net/web-forms/videos/aspnet-ajax/how-do-i-make-client-side-network-callbacks-with-aspnet-ajax