如何将Session [item]从ASP.NET移动到Silverlight? [英] How Do I Move Session[item] from ASP.NET to Silverlight ?

查看:63
本文介绍了如何将Session [item]从ASP.NET移动到Silverlight?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个包含Session Items的Web项目,我项目中直接指向silverlight页面的链接之一,我想在silverlight页面上查看所有session Items.

我试图用Silverlight代码获取会话项,但我得到的只是Null引用,但我设法通过混合代码对其进行了检查.
在silverlight创建的网页中,我尝试在混合代码<%= Session [item]%>中查看它. ,效果很好,但我想用Silverlight代码获取我的会话项目并使用其中的一些内容,混合代码并不是我最喜欢的工作方式.

预先感谢您的帮助.

Hi ,

I got A webproject that has Session Items , One of the links in my project direct to silverlight page , I want to view all the session Items at silverlight page.

I tried to get the session Items in Silverlight code but all I get is Null refernce ,but i managed to check it by mix code.
In the WebPage that created by silverlight , I tried to view it in the Mix Code <%=Session[item]%> , it worked well but i want to get my session items in silverlight code and do with that some stuff , mix code is not my favorite way to work.

Thanks in advance for the help .

推荐答案



这会有所帮助

从Silverlight和ASP.NET访问会话 [


this will help

Access Sessions from Silverlight and ASP.NET[^]


这篇关于如何将Session [item]从ASP.NET移动到Silverlight?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆