Extaspnet Application Skills (vii)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.