Solved

ASP.NET 'contentWindow.document is null' error

Posted on 2004-03-30
5
296 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to maintain the user-usage-log in database for restrict the user --- 2 45
Classic ASP - x-editable save to SQL 3 81
Update field in order 21 124
Choose the older file FSO 6 41
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now