A quick solution to the failure of server side controls after jquery dialog open

  • 2020-03-30 00:56:42
  • OfStack

Jquery dialog provides us with a very beautiful and practical dialog box, which is much more useful than the monotonous alert, confirm, prompt.

When developing with jquery and.net, after directly calling the open of jquery dialog, all the server-side controls are invalidated and the corresponding background code cannot be executed. Jquery just added dialog to the body by default instead of the original server-side form


1. Before calling the open of dialog,$("#dialog").parent().appendto ("form:first") can be solved by adding the contents of dialog to the form on the server side.

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

Related articles: