473,471 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

does ASP works with "bla.asp?PageID=5" ?

(i worked with php befor)
does ASP work with this method of transferring vars from page to page
using links.
let's say i have a page called "moo.asp" and in that page i have a var
called "PageID"
now i make a link to "bla.asp" and i want to use PageID in that page.

1. can i use "bla.asp?PageID=5" ?
2. if yes, how i use the "PageID" var in "bla.asp" ?
3. Response.Write(id) ofc. didn't work =) as expected, he he...

Nov 7 '06 #1
2 2578
Igal wrote:
(i worked with php befor)
does ASP work with this method of transferring vars from page to page
using links.
let's say i have a page called "moo.asp" and in that page i have a var
called "PageID"
now i make a link to "bla.asp" and i want to use PageID in that page.

1. can i use "bla.asp?PageID=5" ?
2. if yes, how i use the "PageID" var in "bla.asp" ?
3. Response.Write(id) ofc. didn't work =) as expected, he he...
Yes. It's called a auerystring, and can be found in the Request object's
QueryString collection:

Response.Write Request.QueryString("PageID")
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 7 '06 #2
Igal wrote:
(i worked with php befor)
does ASP work with this method of transferring vars from page to page
using links.
let's say i have a page called "moo.asp" and in that page i have a var
called "PageID"
now i make a link to "bla.asp" and i want to use PageID in that page.

1. can i use "bla.asp?PageID=5" ?
2. if yes, how i use the "PageID" var in "bla.asp" ?
3. Response.Write(id) ofc. didn't work =) as expected, he he...
Oh! And you can find the ASP Scripting documentation here:
http://msdn.microsoft.com/library/en...f33a651779.asp
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 7 '06 #3

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

Similar topics

11
by: Nicolas Girard | last post by:
Hi, Forgive me if the answer is trivial, but could you tell me how to achieve the following: {k1:,k2:v3,...} --> ,,,...] The subtle point (at least to me) is to "flatten" values that are...
4
by: dalyjason | last post by:
Okay, here's my question. <% dim idnum idnum=request.querystring("id") Response.Buffer = true Response.Redirect "uploadpic.php?idw=" & idnum
11
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
1
by: Jon | last post by:
Hi all! In a insert-trigger I have two joins on the table named inserted. Obviously this construction gives a name collition beetween the two joins (since both joins starts from the same table) ...
24
by: jrefactors | last post by:
I have an upload file operation in the web application. UploadForm.jsp is the form, and UploadAction.jsp is the form processing. The web server is Websphere. //UploadForm.jsp <FORM...
22
by: Ian | last post by:
The title says it all. I can see the case where a function is to be called directly from C, the name mangling will stuff this up. But I can't see a reason why a template function can't be...
0
by: maxim mat | last post by:
Hi I need to build client for web service. But when I'm using Visual Studio .NET to add Web Reference, I get error: "Custom tool error: Unable to import WebService/Schema. Unable to import...
2
by: JohnR | last post by:
Hi all. In my program I try to handle all obvious potential errors with structured error handling (try-catch) block. What I would like to do is have an 'overall' error handler that would...
15
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
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
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
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
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?
0
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.