Passing Arguments to ASP pages

Passing Arguments to ASP pages

Question:
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?

Answer:
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:

mypage.asp?arg1=value1&arg2=value2

Note:

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")

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved