Home » .NET 4.0 » Close thickbox (popup) refresh parent page

Close thickbox (popup) refresh parent page

Test.aspx

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body>
    <form id="form1" runat="server">
       < %= Me.UpdMsg %>
    </form>
</body>
</html>

Test.aspx.vb

Protected UpdMsg As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)Handles 
                                                                            Me.Load
   If Page.IsPostBack Then
      UpdMsg = "<a href='#' onClick='parent.location.reload(1)'>Close!</a>"
    End If
End Sub