Link to home
Start Free TrialLog in
Avatar of gromul
gromul

asked on

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
Avatar of venkateshwarr
venkateshwarr

Is the current window open?

do the check
if (contentWindow.document)
{

}
Avatar of gromul

ASKER

I tried that but get an error message that the contentWindow is undefined. How do I define it?
ASKER CERTIFIED SOLUTION
Avatar of venkateshwarr
venkateshwarr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gromul

ASKER

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

ASKER

Thanks venkateshwarr.