jQuery UI Dialog with ASP.NET button postback

前端 未结 17 2048
鱼传尺愫
鱼传尺愫 2020-11-22 14:43

I have a jQuery UI Dialog working great on my ASP.NET page:

jQuery(function() {
    jQuery(\"#dialog\").dialog({
        draggable: true,
        resizable:          


        
17条回答
  •  [愿得一人]
    2020-11-22 15:10

    ken's answer above did the trick for me. The problem with the accepted answer is that it only works if you have a single modal on the page. If you have multiple modals, you'll need to do it inline in the "open" param while initializing the dialog, not after the fact.

    open: function(type,data) { $(this).parent().appendTo("form"); }
    

    If you do what the first accepted answer tells you with multiple modals, you'll only get the last modal on the page working firing postbacks properly, not all of them.

提交回复
热议问题