'How to get query parameter from URL in VBScript? [duplicate]

I have a requirement from my client to get the query parameter of an URL with VBScript, the URL is like below:

www.xxx.com/index.asp?sn=2

Need to get the value of "sn".

What should the code be like?

No idea how to use VBScript to get the parameter.



Solution 1:[1]

I got the code:

dim sn
sn = Request.QueryString("sn")

It works.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1