This sample code will show you how to auto refresh parent window without closing popup window in ASP.Net from CodeBehind.
protected void btnSubmit_Click(object sender, EventArgs e) { ClientScript.RegisterClientScriptBlock(this.GetType(), "", "window.opener.location.href=window.opener.location.href;", true); }
Protected Sub btnSubmit_Click(sender As Object, e As EventArgs) ClientScript.RegisterClientScriptBlock(Me.[GetType](), "ClosePopup", "window.opener.location.href=window.opener.location.href;", True) End Sub