el problema es que no me toma la comparacion, siempre da el resultado negativo, la idea es que se ponga en selected la opcion que es la correspondiente a la enviada, compara los id's de categorias...espero que me haya explicado y me puedan ayudar..gracias, ahi ta el codigo
la variable cat la tomo con request.querystring
Código:
<select name="categoria" id="categoria" onChange="location.href='agrega.asp?cat=' + this.value">
<% if cat="" then%><OPTION selected>Seleccione categoria</option><%end if%>
<%do while not rscat.eof and rscat("parentid")=0%>
<%if cat=rscat("id_categoria") then%>
<option selected value="<%=rscat("id_categoria")%>"><%=rscat("categoria")%></option>
<%else%>
<option value="<%=rscat("id_categoria")%>"><%=rscat("categoria")%></option>
<%
end if
rscat.movenext
loop%>
</select>

