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.