5 Ekim 2013 Cumartesi

Popup pencereyi kapatınca, eski sayfayı refresh yapmak

1. YÖNTEM...
script type="text/javascript">
function close_this_window()
{
   $pageoffset = document.body.scrollTop;
   window.opener.location.reload();
   window.opener.document.body.scrollTop = $pageoffset;
   window.close();
}
/script
a href="#" onclick="close_this_window();">KAPAT
2. YÖNTEM...
protected void Button2_Click(object sender, EventArgs e)
    {
    ScriptManager.RegisterStartupScript(Page, typeof(string), Guid.NewGuid().ToString(), "window.close();window.opener.location.reload();", true);
    }