QueryString隐藏 [英] QueryString Hiding

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

问题描述

我有兴趣听到在aspx页面之间传递数据时使用什么样的方法隐藏

QueryStrings。例如,我有一个

url看起来像这样:

http://localhost/page.aspx?year = 2000& userid = 100


有哪些方法隐藏问号后的所有内容?


我在网上找到了一些教程,但是它们非常模糊,我正在寻找更多细节。作为asp.net的新手,我有兴趣学习

我可以保证我在页面之间传输的数据。


目前,我通过了网址中的数据与上面的数据完全相同,我在另一端使用

函数从数据中提取变量并将其放入私有变量中下一页。


非常感谢!


震撼

解决方案

< blockquote>

当值保存在用户'

会话(在服务器端)的内存中时,你可以使用Session变量。另一种方法可能是使用cookies(它们是可读的

如果用户真的想要但是可以快速隐藏)或者仅仅使用

Server.Transfer,当处理时请求被转移到另一个页面

在服务器上没有客户端浏览器干预。 Server.Transfer与Response.Redirect一样工作

,但确切的区别是重定向发生

没有客户端浏览器知道(使用Response.Redirect浏览器是

发出实际的重定向请求。)


-

Teemu Keiski

MCP,Microsoft MVP(ASP.NET) ,AspInsiders成员

ASP.NET论坛版主,AspAlliance专栏作家
http://blogs.aspadvice.com/joteke


" Shock" < no@waydude.com>在消息中写道

新闻:10 ************* @ corp.supernews.com ...

我有兴趣听到什么在aspx页面之间传递数据时,有一些方法用于隐藏QueryStrings。例如,我有一个看起来像这样的网址:

http://localhost/page.aspx?year = 2000& userid = 100

隐藏问号后的所有内容有哪些方法?

我在网上找到了一些教程,但是它们非常模糊,而且我需要更多细节。作为asp.net的新手,我有兴趣学习
所有关于保护我在页面之间传输的数据的方法。

目前,我将URL中的数据传递给它上面我用另一端的
函数从数据中提取变量,然后把它放到下一页的私有变量中。

非常感谢!br />
震惊



Hi Shock,


除了Teemu,它给你ASPX的答案,你也可以看看

在ASP中使用的Post和Get(你现在使用的是什么)。


As我记得我,你现在使用的是Get方法,而Post也隐藏了




Cor

另外,你可以使用HttpWebRequest对象将数据发布到另一个页面


Teemu Keiski <乔**** @ aspalliance.com> D'è????¢D ???

:Oo ************** @ TK2MSFTNGP09.phx.gbl ...



当值保存在用户'
会话(在服务器端)的内存中时,你可以使用Session变量。另一种方法可能是使用cookie(如果用户真的想要那些但是可以快速隐藏)或只是使用
Server.Transfer,当请求的处理被转移到另一个页面时,它们是可读的<在没有客户端浏览器干预的服务器上。 Server.Transfer的工作方式与Response.Redirect类似,但确切的区别在于重定向发生
没有客户端浏览器知道(使用Response.Redirect浏览器进行实际的重定向请求)。

-
Teemu Keiski
MCP,Microsoft MVP(ASP.NET),AspInsiders成员
ASP.NET论坛版主,AspAlliance专栏作家
http://blogs.aspadvice.com/joteke

震惊 < no@waydude.com>在消息中写道
新闻:10 ************* @ corp.supernews.com ...

我有兴趣听到什么样的方法是用于在aspx页面之间传递数据时隐藏
QueryStrings。例如,我有
a url看起来像这样:

http://localhost/page.aspx?year = 2000& userid = 100

有哪些方法可以隐藏问号后的所有内容?

我在网上找到了一些教程,但是它们非常模糊,而且我


正在寻找

更多细节。作为asp.net的新手,我对
很感兴趣,我可以学习保护我在页面之间传输的数据。

目前,我将URL中的数据传递给它上面我在另一端使用
a函数从数据中提取变量并将
放入下一页的私有变量中。

非常感谢!
震惊




I am interested in hearing what kind of methods are used to hide
QueryStrings when passing data between aspx pages. For instance, I have a
url that looks something like this:

http://localhost/page.aspx?year=2000&userid=100

What ways are there to hide everything following the question mark?

I have found some tutorials online, but they are very vague and I am seeking
a little more detail. As a newbie to asp.net I am interested in learning
all I can about securing the data I am transferring between pages.

Currently, I pass the data in the url exactly like it is above and I use a
function on the other end to extract the variable from the data and put it
into a private variable on the next page.

Thanks ahead!

Shock

解决方案

Hi,

you could use Session variables when values are kept in memory for user''s
session (at server). Another way could be using cookies (they are readable
if user really wants that but work for ''quick'' hiding) or just using
Server.Transfer, when processing of request is transferred to another page
at the server without client browser intervention. Server.Transfer works
like Response.Redirect but the exact difference is that redirect happens
without client browser knowing that (with Response.Redirect browser is
making the actual redirect request).

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Shock" <no@waydude.com> wrote in message
news:10*************@corp.supernews.com...

I am interested in hearing what kind of methods are used to hide
QueryStrings when passing data between aspx pages. For instance, I have a
url that looks something like this:

http://localhost/page.aspx?year=2000&userid=100

What ways are there to hide everything following the question mark?

I have found some tutorials online, but they are very vague and I am seeking a little more detail. As a newbie to asp.net I am interested in learning
all I can about securing the data I am transferring between pages.

Currently, I pass the data in the url exactly like it is above and I use a
function on the other end to extract the variable from the data and put it
into a private variable on the next page.

Thanks ahead!

Shock



Hi Shock,

In addition to Teemu, which gives you the ASPX answer, you can also look at
the Post and Get which are used in ASP (what you are using now).

As far as I remember me are you now using the Get method while the Post hide
also.

Cor


also ,you can use HttpWebRequest object to post data to another page

"Teemu Keiski" <jo****@aspalliance.com> D′è????¢D???
:Oo**************@TK2MSFTNGP09.phx.gbl...

Hi,

you could use Session variables when values are kept in memory for user''s
session (at server). Another way could be using cookies (they are readable
if user really wants that but work for ''quick'' hiding) or just using
Server.Transfer, when processing of request is transferred to another page
at the server without client browser intervention. Server.Transfer works
like Response.Redirect but the exact difference is that redirect happens
without client browser knowing that (with Response.Redirect browser is
making the actual redirect request).

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Shock" <no@waydude.com> wrote in message
news:10*************@corp.supernews.com...

I am interested in hearing what kind of methods are used to hide
QueryStrings when passing data between aspx pages. For instance, I have a url that looks something like this:

http://localhost/page.aspx?year=2000&userid=100

What ways are there to hide everything following the question mark?

I have found some tutorials online, but they are very vague and I am


seeking

a little more detail. As a newbie to asp.net I am interested in learning all I can about securing the data I am transferring between pages.

Currently, I pass the data in the url exactly like it is above and I use a function on the other end to extract the variable from the data and put it into a private variable on the next page.

Thanks ahead!

Shock




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

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