Asp.net Ajax post-update prompt using updatepanel

Source: Internet
Author: User

I tried to implement such a simple function for a long time. The reason is that the first time I used Asp.net Ajax, I didn't want to use MS. But I want to see how his framework works.

An error occurs when response. Write (JS) is used. According to some documents, we used to call the static method registerstartupscript of scriptmanager. I wonder why the instance type does not provide this method. It took me a lot of time.

Scriptmanager. registerstartupscript (this. updatepanel1, this. GetType (), "updatescript", "alert ('saved successfully')", true );

It seems that you have time to study it. However, I feel that I am getting less and less effort to learn these technologies. Ah, people are old. No.

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.