Ciao a tutti,
ho trovato questa pagina:
<%@ Page Language="VB" %>
<html>
<head>
<link rel="stylesheet"href="intro.css">
</head>
<body>
<center>
<form action="intro3.aspx">
<h3> Nome: <input name="Nome" type=text value="<%=Request.QueryString("Nome")%>">
Categoria: <select name="Categoria" 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("Categoria") = Values(i)) %>
<option selected>
<% Else %>
<option>
<% End If %>
<%=Values(i)%>
</option>
<% Next %>
</select>
</h3>
<input type=submit name="Ricerca" value="Ricerca">
<p>
<% If (Not Request.QueryString("Ricerca") = Nothing) %>
<%=Request.QueryString("Nome") %> È stato selezionato: <%=Request.QueryString("Categoria") %>
<% End If %>
</form>
</center>
</body>
</html>
Fa comparire un serie di controlli nella pagina...
Ma come è possibile?
Come si fa a capire se viene creato un tipo di controllo oppure un'altro?
Soprattutto la creazione del dropdownlist!
Grazie.