现在的位置: 首页 > 综合 > 正文

How can use window.showModalDialog to open a .aspx page pop up window.

2011年06月12日 ⁄ 综合 ⁄ 共 703字 ⁄ 字号 评论关闭
Issue Description

I want to use window.showModalDialog to open a pop up window and then select a value in the Pop up window and return it back to Opener window. My pop up window is an .aspx page that contains a radio button list (a list of citys). When I select one city, it should bring it back to the opener window.Actually, what is happening now is that, when I click on particular city,a new blank window appears which is undesirable.
Note: the RadioButtonList has autopostback property set to true.

Solution

Maybe you have known that Iframe or frame is the solution, there is a sample : http://www.zzgyxx.com/bbs/dispbbs.asp?boardID=21&ID=916.but I don't want to use it because it's very awkward.
There is other way can do it , just add the code <base target="_self"> on the modal web page between <head> and </head>.Very effectually!

抱歉!评论已关闭.