当我们通过十字按钮关闭window.showModalDialog时,父页面在所有IE版本中都是自动缩放 [英] When we closed window.showModalDialog by Cross Button then Parent page is automatic ZOOM in All IE version
本文介绍了当我们通过十字按钮关闭window.showModalDialog时,父页面在所有IE版本中都是自动缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我们关闭Cross.Button的window.showModalDialog,然后在所有IE版本中父页面自动缩放时.请帮助我....
.cs代码
When we Closed window.showModalDialog by Cross Button then Parent page automatic ZOOM in all IE version.Please Help me....
.cs code
#region"Cancle Click"
protected void btnCancal_Click(object sender, EventArgs e)
{
string URL = "";
URL = "CSRReport.aspx?CallRefNo=" + Session["CallRefNo"];
Response.Write("<script language=javascript >window.showModalDialog('" + URL + "',false,'dialogHeight:500px;dialogWidth:800px');</script>");
}
#endregion
推荐答案
嗨 普里扬克,
请使用以下行代替Response.Write
Hi Priyank,
Please use following line instead of Response.Write
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "OpenWindow", "<script>window.showModalDialog('" + URL + "',false,'dialogHeight:500px;dialogWidth:800px');/script>")
如有任何疑问,请让我知道.
如果有帮助,请提供"投票",如果这是正确的答案,请提供"接受答案".:rose:
谢谢,
Imdadhusen
Please do let me know, if you have any doubt.
Please provide "Vote" if this would be helpful, and make "Accept Answer" if this would be correct answer.:rose:
Thanks,
Imdadhusen
这篇关于当我们通过十字按钮关闭window.showModalDialog时,父页面在所有IE版本中都是自动缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文