会议传统的ASP [英] Session in classic ASP

查看:123
本文介绍了会议传统的ASP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I'w工作在传统的ASP一个项目,我想补充,例如,一些用户的临时列表,当我提交表单,这数据将被保存到数据库中。

I'w working on a project in classic ASP and I want to add, for example, some users for a temporary list and when I submit the form, this data will be save to DB.

我知道如何与这个在asp.net中工作,而不是在传统的ASP。

I know how to work with this in asp.net, but not in classic asp.

是否有可能创建一个用户列表,例如,在一个会话管理这个?

Is it possible to create lists of users, for example, and manage this in a session?

谢谢!

推荐答案

是a,你可以利用这一点,或应用程序的状态。有一件事你注意,你不能保存对象,所以你需要做一些序列化,如果你想存储在任何复杂的事情。

yesa, you can use this, or the application state. one thing do note, you cant save objects in it, so you'll need to do some serialization if you want to store any complex things in it.



Session("username")="Donald Duck"
Session("age")=50

<一个href=\"http://www.w3schools.com/ASP/asp_sessions.asp\">http://www.w3schools.com/ASP/asp_sessions.asp

这篇关于会议传统的ASP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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