silverlight and accessing Identity from asp.net

silverlight and accessing Identity from asp.net

Old forum URL: forums.lhotka.net/forums/t/6935.aspx


normalham2 posted on Tuesday, May 12, 2009

I'm using csla silverlight and my principal object inherits from BusinessPrincipalBase. How can I set the Identity in silverlight, and then access it in an ASP.NET page?

In silverlight, my ApplicationContext.User.Identity is set, but I'm not sure how to access via ASP.NET.

Thanks for any help,
Todd

pondosinat replied on Tuesday, May 12, 2009

I don't think you can via the client. You may have to use the db or cookies.

However, if you have a login screen or are using Windows auth then you always have the option of going the other direction from ASP.NET to Silverlight using the InitParameters property:

http://forums.lhotka.net/forums/thread/31610.aspx

 

Copyright (c) Marimer LLC