Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Jun 29, 1999



Application Security Testing: An Integral Part of DevOps

Passing Arguments to ASP pages

I know that when using products like Cold Fusion, you can pass parameters to the page that does the work. Example: [*.cfm]. I have been trying to do this directly with ASP pages, but have not been successful. Can this be done?

You can use the QueryString to pass arguments to your ASP page. Say your ASP page (mypage.asp) is expecting to get two values, "arg1" and "arg2". Then you can call your page as follows:



1. The question mark (?) signifies the start of your argument list.

2. Each argument key-value pair is delimited by the ampersand character (&).

3. Each argument key-value is of the form "name=value".

Inside your ASP page (mypage.asp), you can simply access these variables by using:

var1 = Request("arg1")
var2 = Request("arg2")
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date