English 中文(简体)
我如何从一个屏幕向另一个屏幕传递会议信息。
原标题:How can I pass session information from one screen to another in MVC 3 running on Azure

我有一个屏幕,用户从下降中选择数据库来源。 一旦选定信息,我就希望信息通过到其他屏幕上,用户就不必选择。

我如何从一个屏幕向另一个屏幕传递这种信息? 请注意,信息只是诸如:

DatasourceID - 2 characters
SubjectID - 2 characters

由于我正在开车,我会把这个问题放在客户一边? 我看到了储存数据的一种情况:

Session["abc"] = "def";
if (Session["abc"] != null)
etc ...

这是最好的办法,还是我没有。 在上述网页上,每小时不同服务器都能使用时,上述工作如何? 当地是否有上述储存信息?

最佳回答

会议储存在服务器边。 如今,“你”在储存时有几种选择。 这取决于你希望与这一数据来源做些什么。 如果这是你在以下屏幕上刚刚需要的话,你可以将其储存在上,该编码储存在本届会议上。 直到你阅读。

现在,你有这些办法储存本届会议:

  1. in Azure AppFabric Cache
  2. in a SQL Azure DB
  3. in blob storage

页: 1 缝.会有一个非常容易建立的会议提供者。 你只能在门户网站上创造新的切身之处,并获得必要的网站。 逐个点点点击工具棒。 http://msdn.microsoft.com/en-us/gg457897“rel=“nofollow”>,详见

利用你可以把事情存放在本届会议之外。 底线是,它的成本比较少(大约为128个巴什的45美元/月)。 因此,另一种选择是将会期储存在<0>。 有一个会议提供商。

Here s a link to a great introduction by Scott Hanselman to the ASP.NET universal providers. If you re not using membership, then you just need to setup System.Web.Providers.DefaultSessionStateProvider.

确实,你把你与你的非洲-非洲伙伴关系联系起来。 注: 您必须在链接体内设置<代码>MultipleActiveResultSets=True,这样,如果你从门户上对“C”链接进行早期复制,就肯定会加以补充。

Then there is also a session provider for blog storage in the training Kit, available with a sample app at http://code.msdn.microsoft.com/windowsazure/Windows-Azure-ASPNET-03d5dc14. I believe it is unsupported by MS.

Hope this helps.

问题回答

暂无回答




相关问题
WebForms and ASP.NET MVC co-existence

I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I ve done to make that happen is that I added a namespaces node to the WebForms web.config: <pages ...

Post back complex object from client side

I m using ASP.NET MVC and Entity Framework. I m going to pass a complex entity to the client side and allow the user to modify it, and post it back to the controller. But I don t know how to do that ...

Create an incremental placeholder in NHaml

What I want to reach is a way to add a script and style placeholder in my master. They will include my initial site.css and jquery.js files. Each haml page or partial can then add their own required ...

asp.net mvc automapper parsing

let s say we have something like this public class Person { public string Name {get; set;} public Country Country {get; set;} } public class PersonViewModel { public Person Person {get; ...

structureMap mocks stub help

I have an BLL that does validation on user input then inserts a parent(PorEO) and then inserts children(PorBoxEO). So there are two calls to the same InsertJCDC. One like this=>InsertJCDC(fakePor)...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

热门标签