Silverlight会议 [英] Silverlight Session
本文介绍了Silverlight会议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用会话n silverlight?
How to use session n silverlight?
推荐答案
最大的问题是,为什么要这么做?
http://www.dotnetspider.com/tutorials/Silverlight-Tutorial-316.aspx [ ^ ]告诉您如何访问会话变量.鉴于silverlight控件位于一页中,这就是您所需要做的所有事情.
The big question is, why do you want to ?
http://www.dotnetspider.com/tutorials/Silverlight-Tutorial-316.aspx[^] tells you how to access session variables. Given that the silverlight control lives in the one page, that''s all you should ever need to do.
在Silverlight中使用Session的最佳方法是创建一个集合&然后将其用作会话变量.
Best approach for using Session in Silverlight is to create a collection & then use it as a Session variable.
public Dictionary<string, object> Session {get; set;}
.
.
.
Session["uname"] = "kunal";
if(Session["uname"] != null)
{
string uname = Session["uname"].ToString();
}
请帮忙投票.
Please vote it if it helped you.
这篇关于Silverlight会议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文