473,479 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

query about querystrings

I've been building an Intranet app; and have used hidden fields exclusively
to pass one or two things from one page to another.

However, now I have reached a point where I may have an email sent to a
co-worker, and they want to be able to click on a link in the email to take
them directly to the info about that item. While previously, I had been
able to get to that item by typing an identifying number in a text box and
clicking a submit button, that won't be possible with a link in an email. I
guess I will have to use a querystring.

I am not sure how the querystring thing works, but it looks pretty easy on
first glance. Is there a tutorial, a really basic one, showing how to use
the querystring? Do I have to use the post method now?
Jul 19 '05 #1
1 1296
Gazing into my crystal ball I observed "middletree"
<mi********@htomail.com> writing in
news:#K**************@TK2MSFTNGP12.phx.gbl:
I've been building an Intranet app; and have used hidden fields
exclusively to pass one or two things from one page to another.

However, now I have reached a point where I may have an email sent to a
co-worker, and they want to be able to click on a link in the email to
take them directly to the info about that item. While previously, I
had been able to get to that item by typing an identifying number in a
text box and clicking a submit button, that won't be possible with a
link in an email. I guess I will have to use a querystring.

I am not sure how the querystring thing works, but it looks pretty easy
on first glance. Is there a tutorial, a really basic one, showing how
to use the querystring? Do I have to use the post method now?


Dear co-worker:

Here's the link to whatever you wanted:
<a href="www.example.com/products.asp?id=12345&amp;category=2">Item 12345
Category 2</a>

---- in products.asp ----

id = request.querystring("id")
category = request.querystring("category")
--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #2

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

Similar topics

1
2459
by: Bart Plessers \(artabel\) | last post by:
Hello, I am wondering if one could do following. I have a main frame with 3 subframes ("top", "left" and "contents") I have a link in the left frame, someting like: <a...
4
1674
by: JA | last post by:
I have this little tell-a-friend script that will send out a link back to the site. I want to put a link on my product pages that will go to the script, and have the script display the product...
1
2275
by: Amy | last post by:
I am having a strange problem. I pass data as a querystring from an aspx page to an asp page to generate an email. THe data is then used to go back to the original page and allow access based on...
9
23685
by: Mark | last post by:
I've run a few simple tests looking at how query string encoding/decoding gets handled in asp.net, and it seems like the situation is even messier than it was in asp... Can't say I think much of the...
11
1263
by: thogek | last post by:
We've been working with the ASP.NET 2.0 sitemap functionality, and one problem we're currently having is a need to be able to generate a web.sitemap file that includes URLs containing querystring...
11
4770
by: the other john | last post by:
I've been looking for a solution for this and have seen some approaches but none that seem appropriate for what I'm trying to do. This is what I need... I'm trying to encrypt query strings....
1
1001
by: Chad | last post by:
This question is one of pure curiosity. Clearly the url is incorrectly formatted, but the funny is most of the time it works. Occasionally it does not work. By not work I mean does not call page...
1
1324
abehm
by: abehm | last post by:
Hi, I'm trying to pass multiple values through querystrings to another page where i will parse them to individual variables. I have one method to create the querystrings before they pass, but for...
5
2347
by: =?Utf-8?B?SnVsaWEgQg==?= | last post by:
Hi, I posted last week about a problem I've got and didn't get any responses, but I've managed to come up with a workaround and a possible cause (guessing). I was wondering if someone could...
24
3063
by: MU | last post by:
Hello I have some code that sets a dropdownlist control with a parameter from the querystring. However, when the querystring is empty, I get an error. Here is my code: Protected Sub...
0
6899
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...
0
7019
Oralloy
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,...
0
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6719
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
6847
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
2980
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
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
166
bsmnconsultancy
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...

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.