Forums

ASP

This topic is locked

Drop Down values to Session

Posted 16 Aug 2008 21:12:18
1
has voted
16 Aug 2008 21:12:18 David Soros posted:
How can I retreive both the LABEL and VALUE selected from a
dynamic drop down So I can set them to my 2 different session
variables, Session("PPrice" and Session("PType"

<pre id=code><font face=courier size=2 id=code>
&lt;select name="selectPrice" size="1" id="selectPrice"&gt;
&lt;option value="0"&gt;Select One&lt;/option&gt;
&lt;%
While (NOT rsPricing.EOF)
%&gt;
&lt;option value="&lt;%=(rsPricing.Fields.Item("PhotoPrice".Value)%&gt;"&gt;
&lt;%=(rsPricing.Fields.Item("PhotoSize".Value)%&gt;&lt;/option&gt;
&lt;%
rsPricing.MoveNext()
Wend
If (rsPricing.CursorType &gt; 0) Then
rsPricing.MoveFirst
Else
rsPricing.Requery
End If
%&gt;</font id=code></pre id=code>

Thanks

Edited by - tkdave on 16 Aug 2008 21:13:09

Edited by - tkdave on 16 Aug 2008 21:13:40

Reply to this topic