Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.sdk
Problem with querystring
Tom Quinlivan
8/26/2002 7:04:00 AM
When I copy and run on my machine, the sample code below
from the asp.net site, I get the following query string:
http://localhost/begaspnet/ch03/intro3.aspx?name=tom%
20quinlivan&category=b xhxd!}c0{5{!b12-7%20!
When I run it from the asp.net site I get:
http://samples.gotdotnet.com/quickstart/aspplus/s...
forms/intro/VB/intro3.aspx?
Name=Tom+Quinlivan&Category=business&Lookup=Lookup
Here is the code:
<%@ Page Language="VB" %>
<html>
<head>
<link rel="stylesheet"href="intro.css">
</head>
<body>
<center>
<form action="intro3.aspx">
<h3> Name: <input name="Name" type=text
value="<%=Request.QueryString("Name")%>">
Category: <select name="Category" size=1>
<%
Dim I As Integer
Dim Values(2) As String
Values(0) = "psychology"
Values(1) = "business"
Values(2) = "popular_comp"
For I = 0 To Values.Length - 1
%>
<% If (Request.QueryString
("Category") = Values(i)) %>
<option selected>
<% Else %>
<option>
<% End If %>
<%=Values(i)%>
</option>
<% Next %>
</select>
</h3>
<input type=submit name="Lookup" value="Lookup">
<p>
<% If (Not Request.QueryString("Lookup") =
Nothing) %>
Hi <%= Server.HtmlEncode(Request.QueryString
("Name")) %>, you selected: <%=Request.QueryString
("Category") %>
<% End If %>
</form>
</center>
</body>
</html>
Would anyone know why that would happen?
Thanks,
-TQ
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Problem with querystring
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password