使用c#单页的会话概念 [英] session concept using c# single page

查看:57
本文介绍了使用c#单页的会话概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生/女士,

我应用了更多页面,但是使用了会话概念.当然,我已经添加了一页如何应用会话的方法.

Dear Sir/Mam,

I have more pages applied but using session concept. certainly i have add one page how to apply the session.

推荐答案

您的问题尚不清楚,但是本文绝对可以帮助您了解会话. 在ASP.Net中浏览会话 [
Your question is not clear, but this article will definitely help you learn about sessions.
Exploring Session in ASP.Net[^]


如果使用Windows窗体,则Session对象不可用.
但是,您可以实现自己的某种机制.
If you are using Windows Forms, the Session objects are not available.
However you can implement some sort of your own mechanism.


您可以在单个页面上简单地创建一个类似于session("ABC")的会话,然后假设page1.aspx.cs和相同的会话您可以通过使用session("ABC")语法在page2.aspx.cs中使用.在page1中,它将根据您的要求存储一些值,然后您可以在不同页面中的应用程序中的任何位置使用会话.
You can simply create a session like session("ABC") on a single page then suppose page1.aspx.cs & the same session you can use in page2.aspx.cs by using this session("ABC") syntax. In page1 it will store some value as per your requirement then you can use the session anywhere in application in different pages.


这篇关于使用c#单页的会话概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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