Solved

ASP.NET 'contentWindow.document is null' error

Posted on 2004-03-30
5
298 Views
Last Modified: 2008-03-17
Does anyone know more about this error and maybe how to fix it? It happens when I call button click from javascript: Form1.button1.click();

Thanks
0
Comment
Question by:gromul
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:venkateshwarr
ID: 10720526
Is the current window open?

do the check
if (contentWindow.document)
{

}
0
 

Author Comment

by:gromul
ID: 10720570
I tried that but get an error message that the contentWindow is undefined. How do I define it?
0
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 500 total points
ID: 10720727
simply go one level up and do the check

if (contentWindow)
{

}

0
 

Author Comment

by:gromul
ID: 10721964
It says that contentWindow is undefined also. What I don't understand is: what's the relationship between calling the button click and contentWindow?
0
 

Author Comment

by:gromul
ID: 10731028
Thanks venkateshwarr.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SMS AddAttachment Protocol Error Classic ASP 10 45
Microsoft SQL ADO Conn Issue 6 50
Pass asp session variable to a js function in an asp script 6 27
Designing forms 3 17
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question