弹出框showModalDialog

主页调用

 Response.Write(string.Format("<script language=javascript>window.showModalDialog('EditImageTitle.aspx?pid={0}','','dialogWidth:540px; dialogHeight:250px; status:0;help:0;roll:off');</script>", imageTitleId));

 子页面

//js 
function CloseWin() {
             window.opener.location.reload();
             window.close(); 
         }  


//cs  调用

 Page.ClientScript.RegisterStartupScript(this.GetType(), "", "CloseWin()", true);

 

posted on 2014-03-07 10:42  卡域克  阅读(73)  评论(0)    收藏  举报