public static string PopUpParentPage
{
get
{
if (HttpContext.Current.Session["PopUpParentPage"] == null)
{
return (string.Empty);
}
else
{
return (string)(HttpContext.Current.Session["PopUpParentPage"]);
}
}
set
{
HttpContext.Current.Session["PopUpParentPage"] = value;
}
}
我有上面的代碼,它讓我成爲彈出窗口的父代。如何在彈出頁面關閉時重新加載父頁面
而且下面是如何我在父窗口中打開從一個鏈接按鈕單擊事件彈出窗口
protected void lnkOpenPopUp_Click(object sender, ImageClickEventArgs e)
{
string strScript = "<script>fnChangeLocationPopup();</script>";
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "openPopup", strScript);
}
這也是我如何關閉在彈出的窗口中單擊彈出頁面
上的按鈕protected void btnClosePopUp_Click(object sender, ImageClickEventArgs e)
{
string strScript = "<script>fnChangeLocationPopup();</script>";
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "closePopup", strScript);
}
現在我想要重新加載父頁面,以便刷新數據。如果我知道父頁面URL的值在上面的第一個代碼片段中檢索,那麼一旦彈出窗體關閉,我如何才能在btnClosePopUp_Click上刷新它?