When dropdownlist is triggered, a JS error is reported, while updatepanel is refreshing. The frontend JS gets the dynamic value in the background.

Source: Internet
Author: User

1. When dropdownlist is triggered, a JS error is returned. If no error is returned for the first loading, but an error is returned when selecting this option,

There are two judgments:

1. There is a problem with the data bound to dropdownlist ..

2. When processing data in the dropdownlist, there is a problem with the method in the indexchange event.

 

2. Updatepanel is refreshing.

Put the parts that require no refreshing updates into updatepanel. If you need to assign values to hidden fields, you must also put them in updatepanel.

 

3. the foreground JS gets the dynamic value of the day after tomorrow.

1. Simplest method <% = backend method or public field %>

2. If not? Place a hidden field under the trigger event control. Then, the background value is assigned to the hidden domain. The foreground document. getelementbyid ("hdfvalue"). Value

 

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.