ASP.NET 'contentWindow.document is null' error

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
gromulAsked:
Who is Participating?
 
venkateshwarrConnect With a Mentor Commented:
simply go one level up and do the check

if (contentWindow)
{

}

0
 
venkateshwarrCommented:
Is the current window open?

do the check
if (contentWindow.document)
{

}
0
 
gromulAuthor Commented:
I tried that but get an error message that the contentWindow is undefined. How do I define it?
0
 
gromulAuthor Commented:
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
 
gromulAuthor Commented:
Thanks venkateshwarr.
0
All Courses

From novice to tech pro — start learning today.