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 10 1758
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> дÈëÏûÏ¢ÐÂÎÅ
: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
On the source page, create a form with a hidden field. Store your
QueryString in the hidden field, and post this form to the target
page. This way you can transfer data from the source page to the
target page without using the QueryString.
Tommy,
"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
That only hides it from the browser address bar. It doesn't keep the values
out of the HTML of the form. The only way to assure that nobody will see the
information is to hold it on the server side, or to encrypt it.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Tommy" <To***@WebSoftwares.net> wrote in message
news:aa*************************@posting.google.co m... On the source page, create a form with a hidden field. Store your QueryString in the hidden field, and post this form to the target page. This way you can transfer data from the source page to the target page without using the QueryString.
Tommy,
"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
Hey guys. I found an interesting article that does what I want. http://www.dotnetjunkies.com/HowTo/9...75836DC72.dcik
Any kind of input on their method would be greatly appreciated. However, I
am pleased with the fact that the view sees this information scrambled.
Shock
"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
That would do it.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Shock" <no@waydude.com> wrote in message
news:10*************@corp.supernews.com... Hey guys. I found an interesting article that does what I want.
http://www.dotnetjunkies.com/HowTo/9...75836DC72.dcik Any kind of input on their method would be greatly appreciated. However,
I am pleased with the fact that the view sees this information scrambled.
Shock
"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
Have a look at the message from Teemu, for me this is a horse before a
Ferrari.
Cor
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Ol*************@TK2MSFTNGP12.phx.gbl... Hi Shock
Have a look at the message from Teemu, for me this is a horse before a Ferrari.
Cor
I am going to look more into that. I am pretty new to asp.net and I don't
have a reference yet so I am blurry on a lot of the details. If you have
any code that could clarify his explanation I would greatly appreciate it.
Thanks!
Shock This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shock |
last post by:
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:
...
|
by: Alex |
last post by:
I have a question about determining if one QueryString keys exists. The idea is, if this key exists, than its presence is enough to indicate that its value is true. For example ...
...
|
by: Craig HB |
last post by:
I need to pass a variable in a querystring that I want to hide from the user.
eg www.abc.com?UserID=555 and the UserID must be hidden.
I was thinking of encrypting the ID, using a UserGUID that...
|
by: pingsheng |
last post by:
Dear all,
I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |