. Net asynchronous icallbackeventhandler response. Write () Conflict

Source: Internet
Author: User

This article is inspired by the fact that the icallbackeventhandler callback event JS has never been successful during development.

Microsoft processes the returned informationCodeIt is function webform_executecallback (callbackobject). If an error occurs in the call background, the first letter of the returned information must be e,
If no error occurs and the first letter is not "S", the returned message must contain one |, | the first digit is a number, the number of characters starting from | will be used as the value of the _ eventvalidation control of the page, and the remaining characters will be used as the return value,

The test shows that if response. Write ("ddddddddd") is used to output data in the Code implementing icallbackeventhandler, the data output from response will be placed at the beginning of the page callback.

Format: Response Data | data to be called back

In this way, webform_executecallback cannot be identified and null is returned.

Conclusion: Avoid using response. Write () when using icallbackeventhandler ()

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.