除了URL ASP之外,在网页之间传递值 [英] Passing values between web pages besides URL ASP

查看:91
本文介绍了除了URL ASP之外,在网页之间传递值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



出于安全考虑,我想将一些值从一个ASP页面传递到另一个ASP页面但不通过URL(使用Querystring)。我怎么能设法做到这一点?



干杯,

Dear all,

For security reasons, I want to pass some values from one ASP page to another one but NOT through the URL (using Querystring). How can I manage to do that?

Cheers,

推荐答案



使用Google会话 Google [ ^ ]

最好的问候

M.Mitwalli
Hi ,
Use session Google for it Google[^]
Best Regards
M.Mitwalli






如果您使用的是ASP.NET,那么您可以通过会话变量来实现。



假设您有一些价值:
Hi,

If you are using ASP.NET, then you can do it by Session Variable.

Suppose you have some value lik:
Myvalue



将其分配给会话变量,例如






Assign it to Session Variable like


Session["VariableName"]="MyValue";







您可以在整个网站上使用此Session变量。




and you can use this Session variable throughout the Web site.


不通过URL - 是个正确的想法。背景问题是HTTP是无状态协议。要解决此问题,请使用会话状态管理。请从概述开始:

http://msdn.microsoft.com/ en-us / library / ms178581.aspx [ ^ ]。



有关更一般的状态管理概述,请参阅:

http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx [ ^ ]



-SA
Not through URL — is a right idea. The background problem is that HTTP is a stateless protocol. To work around this problem, Session State Management is used. Please start from the overview:
http://msdn.microsoft.com/en-us/library/ms178581.aspx[^].

For more general State Management Overview, please see:
http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx[^]

—SA


这篇关于除了URL ASP之外,在网页之间传递值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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