本文介绍了Silverlight会议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用会话n silverlight?
How to use session n silverlight?
推荐答案最大的问题是,为什么要这么做? www.dotnetspider/tutorials/Silverlight-Tutorial-316.aspx [ ^ ]告诉您如何访问会话变量.鉴于silverlight控件位于一页中,这就是您所需要做的所有事情. The big question is, why do you want to ? www.dotnetspider/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会议
发布评论