Advertisement

05.09.2008 at 09:37AM PDT, ID: 23390051
[x]
Attachment Details

using window.opener.refresh error

Asked by scm0sml in JavaScript, Web Languages/Standards, Programming for ASP.NET

Tags: vb.net 2.0 and javascript

I have an asp page that opens a 'pop-up'window which is an aspx page.

In my code behind I have:
Private Sub btnSaveClose_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSaveClose.Click
            SaveDetails()

            Response.Write("<script language='javascript'> { window.opener.refresh();}</" & "script>")
            Response.Write("<script language='javascript'> { window.close();}</" & "script>")
        End Sub

The window.close was working fine.

I then added the refresh line as I wanted to refresh the page from which the child page was opened but im getting:
Object doesnt support this property or method.....

What am i doing wrong?Start Free Trial
[+][-]05.09.2008 at 10:58AM PDT, ID: 21535136

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Web Languages/Standards, Programming for ASP.NET
Tags: vb.net 2.0 and javascript
Sign Up Now!
Solution Provided By: sajain84
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628