Quick Solution to server-side control failure after jquery dialog open

Source: Internet
Author: User

Quick Solution to server-side control failure after jquery dialog open

This article is a quick solution to the failure of server-side controls after jquery dialog open. A detailed analysis is provided. If you need a friend, you can refer to it for help.

Jquery dialog provides a very beautiful and practical dialog box, which is much easier to use than monotonous alert, confirm, and prompt.

 

When jquery and. net are used for joint development, after the open of jquery dialog is called directly, all the controls on the server end become invalid and the corresponding background Code cannot be executed. The reason is that jquery adds the dialog to the body by default, instead of the form on the original server.

 

Solution:

 

1. You can call dialog before open, $ ("# dialog "). parent (). appendTo ("form: first") is solved by adding the content in the dialog to the form on the server.

 

2. Modify the js file of jquery and add the code to the form instead of the body.

 

 

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.