简体   繁体   English

当选定索引更改事件时,dhtml弹出窗口消失

[英]dhtml popup window disappear when selected index changed event

I am using the DHTML window to show the div in a popup window. 我正在使用DHTML窗口在弹出窗口中显示div。 The div containing a dropdownlist with the property auto post pack is true.Now i selected the second list in the dropdownlist the total DHTML popup was disappear. 包含带有属性auto post pack的dropdownlist的div为true。现在我选择了dropdownlist中的第二个列表,总的DHTML弹出窗口消失了。 Please help me to maintain the popup window during this type of action. 请在这种类型的操作期间帮助我维护弹出窗口。 sorry for my English. 对不起我的英语不好。

on the postback, the dynamically created html codes shold be lost. 在回发时,动态创建的html代码将丢失。 If you need the code, you can take the dynamic code in to a hidden fiels and retain that code to the div on (ispostback== true) {} ON the page load event. 如果您需要代码,则可以将动态代码带入隐藏的字段,并将该代码保留在div上(ispostback == true){}上的页面加载事件中。

you can use this link for the ref. 您可以使用此链接作为参考。

Hidden field and dhtml 隐藏字段和dhtml

As you are using popup so any postback will lost your popup. 当您使用弹出窗口时,任何回发都将丢失您的弹出窗口。
I mean your popup will be closed. 我的意思是您的弹出窗口将关闭。
You need to implement jQuery with http-handler or web-service or page method to call you function. 您需要使用http-handler或Web服务或page方法实现jQuery来调用您的函数。
Only then you will be able to stop pop up from closing. 只有这样,您才能停止关闭弹出窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM