Can I use session variables on my aspx pages and in a silverlight application?

I need to create a silverlight application for publishing. and the class that publishes the events is in the class library.

I have a .Net web solution that contains a Silverlight project and an asp.net web project. The asp.net project uses some classes in the class library. These classes expose some events and after starting, I get the returned data and save them in my session variables.

I created several session variables - basically list types.

I want to launch the silverlight xaml page by redirecting the user to the aspx page containing the silverlight plugin.

I want to use a List that is in session variables and display them in a data grid.

Can I use a session variable between aspnet and silverlight? What should be the best way to achieve this goal when the class throws an event, I get the data and display it in the silverlight table, and the chart is updated when the class publishes a new event?

+3
source share
2 answers

You cannot pass a session variable between ASP.NET and Silverlight. The reason is easy to understand: ASP.NET launches serveride, Silverlight launches ClientSide.

, webservice. , WCF, ASP.NET WebService . (, WCF, ).

ASP.NET WCF .

, , ASP.NET cookie , Silverlight , cookie. , Silverlight .

+2

All Articles