473,466 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Hide querystring

Hi,

Is there a way to hide the querystring?

Now I have URL's like this:
....aspx?name=james&zip=1234

Is there a simple way to read this "name=james&zip=1234" and hide it?
If there are more options, what's the best?

Thanks!
Nov 19 '05 #1
3 8228
Hi Arjen,

You can hide it by always using a form and posting (method=POST instead of
method=GET) to the target page.

But this is not the standard way to do things. Why would you want to hide it?

Cheers,
Tom Pester
Hi,

Is there a way to hide the querystring?

Now I have URL's like this:
...aspx?name=james&zip=1234
Is there a simple way to read this "name=james&zip=1234" and hide it?
If there are more options, what's the best?

Thanks!

Nov 19 '05 #2
Here's a nice, simple way to pass values from one page to another:
(VB.NET code)

'Add data to the context object before transferring
Context.Items("myParameter") = x
Server.Transfer("WebForm2.aspx")

Then, in WebForm2.aspx:

'Grab data from the context property
Dim x as Integer = CType(Context.Items("myParameter"),Integer)

Of course there are a number of ways to pass values from one page to another
besides the querystring there are cookies, session, context, saving to a
temporary table in the database between each page, etc.
You'll have to decide which technique is best for your application.
Here are several good articles on the subject to help you decide.
http://msdn.microsoft.com/msdnmag/is...e/default.aspx

http://www.aspalliance.com/kenc/passval.aspx

http://www.dotnetbips.com/displayarticle.aspx?id=79

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Arjen" <bo*****@hotmail.com> wrote in message
news:dd**********@news4.zwoll1.ov.home.nl...
Hi,

Is there a way to hide the querystring?

Now I have URL's like this:
...aspx?name=james&zip=1234

Is there a simple way to read this "name=james&zip=1234" and hide it?
If there are more options, what's the best?

Thanks!

Nov 19 '05 #3
Arjen <bo*****@hotmail.com> ha scritto:
Hi,

Is there a way to hide the querystring?

Now I have URL's like this:
...aspx?name=james&zip=1234

Is there a simple way to read this "name=james&zip=1234" and hide it?
If there are more options, what's the best?

Thanks!


You can encrypt:
http://www.devcity.net/articles/47/1...erystring.aspx

--
AZ [Microsoft - .NET MVP]
Mia Home page: http://ciclismo.sitiasp.it
Asp.Net community: http://www.aspitalia.com
Il mio blog: http://blogs.aspitalia.com/az
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Terri | last post by:
I want to send emails that would include a link to an asp page. The link would look like http://10.0.0.10/ContactDetails.asp?ID=18484 How can I prevent someone from simply typing in a...
4
by: -=franz=- | last post by:
is there a way to hide the query string? i receive a variable with a querystring from an external domain. i need to hide it cause it's a important data. thanks franz from italy
8
by: Alex Nitulescu | last post by:
Hi. I have the following question - is it possible (I assume it is, but I have no idea how to do it) to HIDE the href text which automatically shows in the status bar of IE ? I have build a...
2
by: needin4mation | last post by:
Hi, I have an older webpage that uses a querystring to send data to an asp classic page. In that link there is data that contains sensitive information. I do not want this displayed when the user...
5
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I have a page ASPX that calls to another one. It does window.open to another URL, and I want to hide the URL because the user not must see the querystring by security subjects. ...
1
by: amol24 | last post by:
Hi everyone, I want to hide the QueryString so that no one should see that .... e.g. i want http://www.xyz.com for all my pages instead of displaying the querystring after the Domain Name .......
22
karthickkuchanur
by: karthickkuchanur | last post by:
I want to hide the following value to hide when i call the url <script> function callEmployeeEducationalHistory() { ...
2
by: ganesh22 | last post by:
Hi, How to Hide QueryString Value in asp.net? ex: iam having the link like this http://forums.asp.net/AddPost.aspx?ForumID=22 so i want to hide ForumID value there in some urls i saw like...
2
by: ziycon | last post by:
This function is in a class file, can't get the frmLogin form to hide when a user logins in, the frmMain will open fine though!??? public void login(string username,string password) { ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.