Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to test if we have Page_Validators
Message
 
 
À
01/07/2008 03:41:15
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01327711
Message ID:
01327854
Vues:
11
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform