如何在jQuery对话框,模态窗口中显示回发下拉列表?可能吗? [英] How to display postback dropdown in jQuery dialog , modal window ? is it possible?

查看:88
本文介绍了如何在jQuery对话框,模态窗口中显示回发下拉列表?可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了jquery对话框和模式窗口弹出的一些示例...这里的问题是,当我单击按钮时,弹出窗口将显示....它包含一些带有回发的下拉列表...当我单击dropdown1时,它不会将数据发送到下拉菜单2 ...如何在弹出窗口中使用级联下拉菜单?有可能在模式窗口或jquery对话框中吗?有人可以帮忙举例吗.

Hi i tried some examples of jquery dialog and modal window popup...here my problem is when i click on button popup window will display....it contain some dropdown withg postback...when i click dropdown1 then it is not fire the data to dropdown2...how to use cascading dropdown in popup??is it possible in modal window or jquery dialog???can anybody help with example.

推荐答案

asp.net中jQuery UI对话框存在的问题是,默认情况下,它向主体中添加html的形式不是html,而asp.net要求所有内容都在单个形式内.

因此,要纠正此问题,您必须在选项中添加一个功能

Problem with jQuery UI dialog in asp.net is that default its adding html to body not form and asp.net require to have all within single form.

So to correct this you have to add one function to options

allOptions.open = function (type, data) {
jQuery(this).parent().appendTo("form:first");
};
jQuery('.class').dialog(allOptions);



这将在对话框中添加对话框,并且所有asp.ent事件都将触发,因为窗体中的控件位置无关紧要.



this will add dialog to form and all asp.ent events will fire since it does not matter where within form resides control.


这篇关于如何在jQuery对话框,模态窗口中显示回发下拉列表?可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆