In ASP.NET we have the luxury of having an AJAX framework built in from v3.5 onwards that includes some pretty powerful tools, the best of which is the UpdatePanel. The UpdatePanel allows us to trigger partial-page postbacks and hit methods and classes in the code-behind with little effort to wire-up the event.
The simplest example of ScriptManager usage is this;
ScriptManager.RegisterClientScriptBlock(Page, GetType(), “Load”, “Load();”, true);
ScriptManager.RegisterClientScriptBlock(Page, GetType, “Load”, “Load();”, true
What this does is, on a partial page postback, adds this to the page;