Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to test if we have Page_Validators
Message
 
 
General information
Forum:
ASP.NET
Category:
Client-side development
Environment versions
Environment:
ASP.NET
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01327711
Message ID:
01327854
Views:
10
>>WOW!
>>
>>Even MS has typos on their Help pages. Luckily google still helps. It should be
>>
>>if (typeof Page_Validators !="undefined")...
>>
>>In other words, no parens after typeof.
>
>Huh?
>
>Shouldn't it be if (typeof(Page_Validators) !="undefined") ?
>i.e. the problem was in using "==" instead of "!="
>
>Regards,
>Viv

Hi Viv,

The line (typeof(Page_Validators) == 'undefined' was producing an error. This is very strange indeed, because both typeof Page_Validators and typef(Page_Validators) are supposed to be the same.

May be it's time to re-boot my computer? Anyway, typeof Page_Validators worked, so I'll keep this syntax.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform