Fengzhimei@Dot.Net
Designing My Colorful Dream
posts - 78,  comments - 190,  trackbacks - 3
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!
posted on 2004-05-20 16:09 fengzhimei 阅读(11270) 评论(28)  编辑 收藏 网摘 所属分类: Asp.net

FeedBack:
2004-05-21 09:40 | mmkk [未注册用户]
have you really tested it?it does not works for me.thanks
  回复  引用    
2004-05-21 10:29 | fengzhimei      
of course yes, I have a demo project but i don't know how to upload it?
  回复  引用  查看    
2004-05-21 10:52 | dudu      
Sorry!Can not upload files.
  回复  引用  查看    
2004-05-21 11:46 | mmkk [未注册用户]
my email account is mmkk AT 98xj1.com,Could you send me the demo?
thanks
  回复  引用    
2004-05-21 16:37 | fengzhimei      
done!
check your mailbox:)
  回复  引用  查看    
2004-06-04 09:37 | ilikefox [未注册用户]
Thank you!!!
Very Good
It works Well

고마워요..
잘 쓸께요~
  回复  引用    
2004-06-10 00:55 | kralbenim61@hotmail.com [未注册用户]
Hi,
is it possible that you send me the same demo?
Thanks
  回复  引用    
2004-06-24 01:58 | Evil "e" [未注册用户]
I have been trying to get this showModalDialog thing to work for me but cannot.  I want to pass a value from a label control to the modal window and then on the button click in the modal window perform a db update, close the window and place the result (say a date entered or a ddl selection) in another label control.  Where can I get an example of that?

Can you show me your example?
hadware021@hotmail.com   ..... PLease
  回复  引用    
2004-07-03 20:04 | Raymond [未注册用户]
Hi,

Does anyone has the sample code? Can you email it
to me? my email adderss is ocp9i_2002@yahoo.com.hk .
I urgently need it.

Thanks,
Raymond
  回复  引用    
2004-08-02 14:28 | Dip [未注册用户]
It is Opening Asp File fine But for example in that ASP i have search form and button click i am displaying some values now when it reloads page dialogArgument or window.close() is not working can anyone tell why ?
  回复  引用    
2004-08-05 22:45 | http://slingfive.com/pages/code/ssDialogFix/ [未注册用户]
http://slingfive.com/pages/code/ssDialogFix/
  回复  引用    
2004-08-22 10:18 | zjg [未注册用户]
Hi ,
i am encountering a similar problem.and could anyone who has the sample code  email it to me?  my email address is jigan_zhan@hotmail.com.

thank you very much for your help!!!
zjg
  回复  引用    
2004-10-18 04:00 | thanks [未注册用户]
a lotv thanks your trick as great for my sanity
by
blessings......

  回复  引用    
2004-11-30 01:23 | satyakkin@hotmail.com [未注册用户]
Does anyone has the sample code? Can you email it
to me? my email adderss is satyakkin@hotmail.com

  回复  引用    
2004-12-26 22:51 | 大吃一碗      
Great!it's works!
  回复  引用  查看    
2005-04-29 03:49 | kh_bruno@yahoo.fr [未注册用户]
Hi,

Could you email it for me too ?

My email address is kh_bruno@yahoo.fr

Thanks,
Bruno
  回复  引用    
2005-04-29 03:52 | kh_bruno@yahoo.fr [未注册用户]
Hi,

Could you email it for me too ?

My email address is kh_bruno@yahoo.fr

Thanks,
Bruno
  回复  引用    
2005-06-13 17:01 | durbich@hotmail.com [未注册用户]
Its really simple cuestion
seee
http://www.codeproject.com/aspnet/Modal_Dialog.asp
  回复  引用    
2005-12-09 15:36 | 瓶子      
非常感谢!!


  回复  引用  查看    
2006-03-10 09:09 | qguan [未注册用户]
Can you please email the sample code to qguan50@hotmail.com? Thanks a lot.
  回复  引用    
2006-05-07 03:47 | Please send me the example project [未注册用户]
can you please send me the example of the modal window as well
regards , elrom silvera and my e-mail is: elrom@cerylion.net.
  回复  引用    
2006-06-30 16:52 | fzsh [未注册用户]
Have you test the <base target="_self"> method, it doesn't work, at least for me. Thanks.
  回复  引用    
2006-06-30 16:53 | fzsh [未注册用户]
Have you test the <base target="_self"> method, it doesn't work, at least for me. Thanks.
mythos@citiz.net
  回复  引用    
2006-07-27 00:01 | vithyastar@yahoo.com [未注册用户]
Could you please send me the sample project/forms using <base target="_self"> method, because it didn't work for me. When hitting server side code it automatically opens up a new window.
Please email it to vithyastar@yahoo.com asap, thanks, vithya
  回复  引用    
2006-08-31 11:55 | Chap [未注册用户]
Do not add attribute "target=_self" in <form> label.
If you do so, the <base target="_self"> method will not work!

ps:I'm sorry for my poor English.
  回复  引用    
2006-10-02 17:13 | woo [未注册用户]
Pls email me the demo that includes the <base target="_self"> code.
My email is woosweehong@yahoo.com
  回复  引用    
2007-11-13 12:11 | Maria [未注册用户]
what is MSN? I am a newcomer. thank you@kh_bruno@yahoo.fr

  回复  引用    




标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2004-05-20 16:11 编辑过
Google站内搜索

相关文章:

相关链接:
 

Would you like to share your thought? Would you like to make friends with me? Just contact me:)
These postings are provided "AS IS" with no warranties, and confer no rights.
Translate this page to chinese
Locations of visitors to this page

<2008年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

与我联系

搜索

 

常用链接

留言簿(9)

随笔分类

随笔档案

收藏夹

.Text Skin

Blog I Read

Cool Tools

Exchange Bloggers

Game

Javascript

My Friend

Others

Regular Expression

SharePoint Bloggers