Hello Everyone,

I have ASP.NET from with a few links if I click one the link its open in new window and when I close this window the parent windows automatically refresh.

Thanks,
Farooq

Set URL of opener window.

....
<head runat="server">
    <title>Sample Page</title>
    <script type="text/javascript">
        function CloseIt() {
            close();
            window.opener.document.URL = "Default.aspx";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <input type="button" value="Close" onclick="CloseIt()" />
    </div>
    </form>
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.