I migrated an application from .NET 2.0 to 4.0. It worked without any error on 2.0 but not always in 4.0.
I got a tab button which I switch back and forth from screen to screen which always call this code:
function pageIsRegistered(navigationPage)
{
for(i=0;i<navigationPages.length;i++)
{
debugger;
if(navigationPage == navigationPages[i])
{
navigationPageIndex = i;
return true;
}
}
return false;
}
It works the first few times but it will eventually give me the following error:
Unhandled exception at line 47 ....
JavaScript runtime error: Acccess is denied.
It bombs on this line
if(navigationPage == navigationPages[i])
How do I fix this? Thanks.