HOLDING selection in drop-down list after submitting - ?

M

montiy

OK, here's what I want to do...

(I'm using FrontPage 2003, and I have an ASP page that is fed by a database.)

I have a drop-down box that is populated by a "State" field. When I select
a state from the drop-down box and press "Submit", I want the listed state to
STAY in the drop-down box...rather than having it reset.

(In this case, the proper state is selected. It's just annoying that the
display has to be reset, so the user can't see what he/she actually selected.)

Can anyone give me some help in how to do this? My current code for the
drop-down box is below. Thanks for your help!

----------------

<select NAME="State" SIZE="1">
<!--webbot bot="AspInclude" clientside u-incfile="../_fpclass/fpdbrgn1.inc"
startspan -->
<!--#include file="../_fpclass/fpdbrgn1.inc"--><!--webbot bot="AspInclude"
endspan i-checksum="52766" -->
<option>
<%=FP_FieldHTML(fp_rs,"State")%>
</option>
<!--webbot bot="AspInclude" clientside u-incfile="../_fpclass/fpdbrgn2.inc"
startspan -->
<!--#include file="../_fpclass/fpdbrgn2.inc"--><!--webbot bot="AspInclude"
endspan i-checksum="52830" -->
</select>
 
M

montiy

Kathleen,

I'm doing my programming in ASP -- and (in the example you provided) I can
see that the second code option (toward the bottom of the page) is an ASP
block. However, the first one does not appear to be ASP...Am I right? Is
there a way to use the SECOND (ASP) example to accomplish this for a
NON-hard-coded drop-down box (one that is populated automatically from the
database)?

-- Nate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top