Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User control call page method?
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01374382
Message ID:
01374552
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform