<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Menù a tendina]]></title><description><![CDATA[<p dir="auto">ho realizzato questo menù a tendina in una form di ricerca .<br />
in pratica sono due campi il secondo si aggiorna in base alla scelta fatta nel primo e fin quì tutto ok<br />
la domanda è come faccio a mantenere la scelta fatta all'interno del primo campo?<br />
quando io effettuo una selezione il secondo si aggiorna ma sul primo la scelta sparisce invece io voglio che resti ancora visibile</p>
<p dir="auto">ecco il link per capire :  .....roma122.it/AreaDownload/cerca.asp</p>
<pre><code>&lt;table width="273" border="1" align="center"&gt;
  &lt;tr&gt;
    &lt;td width="155"&gt;Categoria&lt;/td&gt;
    &lt;td width="102"&gt;      &lt;form action="cerca.asp" method="get" name="cerca" id="cerca"&gt;
          &lt;select name="Sel_cat" id="Sel_cat" onchange="submit()"&gt;
            &lt;option value="value"&gt;--&lt;/option&gt;
            &lt;%
While (NOT categoria.EOF)
%&gt;
            &lt;option value="&lt;%=(categoria.Fields.Item("codifica").Value)%&gt;"&gt;&lt;%=(categoria.Fields.Item("Categoria").Value)%&gt;&lt;/option&gt;
            &lt;%
  categoria.MoveNext()
Wend
If (categoria.CursorType &gt; 0) Then
  categoria.MoveFirst
Else
  categoria.Requery
End If
%&gt;
          &lt;/select&gt;
                    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;p&gt;Sub Categoria &lt;/p&gt;&lt;/td&gt;
    &lt;td&gt;&lt;select name="sel_subCat" id="sel_subCat"&gt;
      &lt;%
While (NOT SubCategoria.EOF)
%&gt;
      &lt;option value="&lt;%=(SubCategoria.Fields.Item("SubCateg").Value)%&gt;" &lt;%If (Not isNull((SubCategoria.Fields.Item("SubCateg").Value))) Then If (CStr(SubCategoria.Fields.Item("SubCateg").Value) = CStr((SubCategoria.Fields.Item("SubCateg").Value))) Then Response.Write("SELECTED") : Response.Write("")%&gt; &gt;&lt;%=(SubCategoria.Fields.Item("SubCateg").Value)%&gt;&lt;/option&gt;
      &lt;%
  SubCategoria.MoveNext()
Wend
If (SubCategoria.CursorType &gt; 0) Then
  SubCategoria.MoveFirst
Else
  SubCategoria.Requery
End If
%&gt;
    &lt;/select&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/62651/menù-a-tendina</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 04:11:22 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/62651.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Feb 2008 18:42:43 GMT</pubDate><ttl>60</ttl></channel></rss>