C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Silverlight »

How to access session variable in silver light


Posted Date: 06 Nov 2009      Posted By: NekkantiDivya      Member Level: Gold     Points: 1   Responses: 1



Hi,

I am working on a silverlight project. In this I need to save a video name in database on the name of the present login user. For this I wrote a WCF service to get the video name from the silverlight page and passed it to the method in my bussiness logic to insert in database. At the same time I should also get the current userId which is a session variable. I am not able to get this session variable. I try like below in WCF service. But it is giving me error like "The name 'Session' does not exists in the current context".

int UserId = (string)(Session["LoginUserID"]);


If anyone have any idea to solve this please reply me.


Thanks in advance.





Responses

Author: Satish Kumar J    10 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Not whether it will help you or not but please have look at following link it might give you some idea to procced

http://forums.silverlight.net/forums/p/18160/301304.aspx

HTH

Regards,
Satish
My Blog



Post Reply
You must Sign In to post a response.
Next : How to send mail [Error: The SMTP server requires a secure connection or the client ]
Previous : How to use WCF service in silver light application
Return to Discussion Forum
Post New Message
Category: Silverlight

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use