ASP Query String Collection
- The QueryString collection is used to retrieve the variable values in the HTTP query string.
- web1.asp
1
<html xmlns="http://www.w3.org/1999/xhtml" >
2
<head runat="server">
3
<title>Untitled Page</title>
4
</head>
5
<body>
6
<form id="form1" runat="server">
7
<div>
8
<a href="web2.asp?txt=this is a query string test">Link with a query string</a>
9
</div>
10
</form>
11
</body>
12
</html>
13
- web2.asp
1
<html xmlns="http://www.w3.org/1999/xhtml" >
2
<head runat="server">
3
<title>Untitled Page</title>
4
</head>
5
<body>
6
<form id="form1" runat="server">
7
<div>
8
<%= request.QueryString("txt") %>
9
</div>
10
</form>
11
</body>
12
</html>
13

浙公网安备 33010602011771号