In ASP. NET Ajax, the server calls the js method.

Source: Internet
Author: User

(Referenced from BaiduArticle.

In Asp.net Ajax, you sometimes need to call a js method when processing is completed in the background to indicate that the processing has been completed or some layers have been closed. For example, if the photo masking layer is used.

However, when the updatepanel Control calls the server method and calls JS using the response. Write () method, an error is reported. If clientscript. registerstartupscript is used, it is not reflected at all.

After searching for half a day, we used the scriptmanager. registerstartupscript method to call Js.

Related Article

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.