[thelist] ASP Select Form not auto-selecting
Rob Smith
rob.smith at THERMON.com
Fri Sep 26 15:21:19 CDT 2003
> Did you try:
> Trim(both)
> CLng(both)
> Test
> ?
Hi. Your email may have been delayed. For the record here's my solution:
<select name="Manager">
<option value=""></option>
<%
while not Managers.eof
response.write("<option value=""" &
Managers.fields.item("RepID").value & """")
If Trim(request.form("Manager")) =
Trim(Managers.fields.item("RepID").value) then
Response.Write(" selected ")
End If
Response.Write(">" & Managers.fields.item("RepName").value &
"</option>")
Managers.movenext
wend
%>
</select>
Rob
More information about the thelist
mailing list