C
Craig Buchanan
I have an object, named SiteIdentity, that implements IIdentity. I have
added additional properties to this class, Email for instance. I am using
forms authentication.
In the code behind class for a webform, I try to cast from the HttpContext
identity object to my SiteIdentity object, but I get an error that reads
"Specified cast not valid". Here's the code:
If context.User.Identity.IsAuthenticated Then
Response.Write( Ctype( context.User.Identity,
MySite.Framework.Security.SiteIdentity).Email )
...
What am I missing?
Thanks,
Craig Buchanan
added additional properties to this class, Email for instance. I am using
forms authentication.
In the code behind class for a webform, I try to cast from the HttpContext
identity object to my SiteIdentity object, but I get an error that reads
"Specified cast not valid". Here's the code:
If context.User.Identity.IsAuthenticated Then
Response.Write( Ctype( context.User.Identity,
MySite.Framework.Security.SiteIdentity).Email )
...
What am I missing?
Thanks,
Craig Buchanan