Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User control call page method?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01374382
Message ID:
01374552
Vues:
14
>I think it's CType() in VB.Net

CType() is an explicit cast (AFAIK) meaning if the Page the user control was on didn't implement the interface your code would crash; that's why I was using the "as" operator in C# and TryCast - they don't throw an exception if the cast fails. You just check to see if it's null or not to determine if the cast was successful.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform