Ajax Calls in ASP.NET
For removing postback in web page you use
1 Update Panels
- Update Panels are used when there is partial postback of page can happen.
2 Ajax Calls
- If you want to minimize postbacks to the extent Ajax calls are used.
- For implementing that we need jquery libraries
and we will create our jscript file inside that we will make ajax call to the page and return all the HTML from it and append the result from it to any container of the calling page.
url: "Insert.aspx", // Name of the called page where ajax call goes
$("#div1").html(result); // bind result to the calling page