决定一个人富有的三个条件,一是出身,二是运气,三是努力
If you can dream it,you can do it! Nothing Impossible~

第一种:

Response.Write("<script>window.close();</script>");// 会弹出对话框询问是否关闭

第二种:          

Response.Write("<script>window.opener=null;window.close();</script>");// 不会弹出询问

 

传值给父页面:

string value;
value = Request.Form["myRadio"].ToString();
Response.Write("<script>window.opener.document.all.TextBox1.value='" + value + "';opener=null;self.close();</script>");

posted on 2008-11-03 20:28  ZEKELOVE  阅读(6410)  评论(1编辑  收藏  举报