且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在提交按钮单击后关闭窗口

更新时间:2022-12-17 20:32:48

请按照下面的代码:

Follow below code:
Response.Write("<script type='text/javascript'>");
Response.Write("alert('Request Updated Successfully');");
Response.Write("document.location.href='TIF.aspx';");
Response.Write("</script>");



问候......:笑:


Regards..:laugh:


要重定向父/开启页面,你可以使用



To redirect the parent/opener page you can use

window.opener.location.href = 'http://www.google.com';



要关闭当前窗口/弹出窗口,您可以使用




To close the current window/popup you can use

window.close();


试试这个,..



Response.Redirect(UR TIF.aspx的位置);



EX:



Response.Redirect(〜/ Application / Dietary / TIF.aspx);
try this one,..

Response.Redirect("LOCATION OF UR TIF.aspx");

EX:

Response.Redirect("~/Application/Dietary/TIF.aspx");