在后台用Response.Write写的前台程序,如下所示:
Response.Write("<script>window.parent.frames['conFrame'].location.href='Web/ABC/AAA.aspx?id=1234&Type=Start';</script>");
为什么有时可以刷新页面,有时却不能刷新?痛苦ing。请高手帮忙,3Q。
Response.Write("<script>window.parent.frames['conFrame'].location.href='Web/ABC/AAA.aspx?id=1234&Type=Start';</script>");
为什么有时可以刷新页面,有时却不能刷新?痛苦ing。请高手帮忙,3Q。
public static void ShowMessage(System.Web.UI.Page page,string strMessage,string strUrl)
{
string gourl;
if(strUrl!="")
{
gourl = "self.location='"+strUrl+"'";
}
else
{
gourl = "";
}
page.RegisterStartupScript("_Tips","<script language='javascript'>alert('"+strMessage+"');"+gourl+"</script>");
}