asp.net ajax using UpdatePanel to update the prompts

Source: Internet
Author: User
Ajax|asp.net want to realize such a simple function, but toss for half a day. The reason is the first use of ASP.net Ajax, is not intended to use the MS. But wanted to see how his frame was.

There is an error using Response.Write (JS). Looking for some documents, the original use of ScriptManager static method RegisterStartupScript to implement the call. It is not known why the instance type does not provide this method. It cost me a lot of time.

Scriptmanager.registerstartupscript (this. UpdatePanel1, this. GetType (), "Updatescript", "alert (' Save Success ')", true);

It seems to be a good time to study it later.

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.