Forum Moderators: open
This works without a problem.
However, when the box is built dynamically, and I try to use the Request value, it doesn't:
<select>
<% while (!rs.EOF){%>
<option value="<%=rs("val")%>" <%=rs("val") == Request("e")? "selected" : ""%>><%=rs("val")%>
<% rs.MoveNext(); } %>
</select>
Does it have anything to do with using the Request object? When I view both values they are identical. I tried parseInt, String, and a few other functions to make sure they matched, but still the "selected" never shows.
Could I put the Request("e") value into a variable and use that? I haven't tried that.