Introduction
In the latest release of Extasp.net v2.0.6, there is a major update:
------Optimize the internal implementation of Ajax, the viewstate of each page is now reduced by around 1/3 (important updates).
If you are interested in comparing the results of some of the page viewstate in V2.0beta5 and v2.0.6, you can see a blog.
Ajax in the Extaspnet
In the Extaspnet product description, there is such a phrase "native AJAX support", in fact, this is a feature we highly appreciate.
The so-called "native" is that developers do not need to do any setup, extaspnet in the postback default is an AJAX process.
Consider a simple example:
<ext:PageManager ID="PageManager1" runat="server" />
<ext:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button">
</ext:Button>
protected void Button1_Click(object sender, EventArgs e)
{
Button1.Text = "Click:" + DateTime.Now.ToLongTimeString();
}
When we click on the button, the value of the button is changed "click:20:34:42", if you look closely at this postback is not like clicking on a normal ASP.net button,
The page is not refreshed, and a red balloon "loading ..." is also displayed in the upper-right corner of the page during the postback.