Jquery ui dialog internally uses the asp.net control, jquerydialog

Source: Internet
Author: User

Jquery ui dialog internally uses the asp.net control, jquerydialog

Add

appendTo:"form",

The backend cannot obtain the value of the asp.net control.

modal: true,

The dialog box in startup mode cannot be operated.

Jquery ui dialog code:

$ (Document ). ready (function () {$ ("# dialog "). dialog ({autoOpen: true, appendTo: "form", height: 250, width: 300, modal: true, buttons: {OK: function () {$ ("# btnCM "). click () ;}, cancel: function () {$ (this ). dialog ("close ");}}});});

DIV code:

<Div id = "dialog" title = "select exercise level"> <p align = "center" <asp: textBox ID = "txtA" runat = "server"> </asp: TextBox> </p> </div>

 

Or you can use

$("#dialog").dialog().parent().appendTo($("form:first"));

The backend can obtain the control value, but the mode dialog box cannot be resolved.

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.