retain value chosen in listbox

Results 1 to 3 of 3

Thread: retain value chosen in listbox

  1. #1
    Melba Guest

    Default retain value chosen in listbox

    Hi,<BR><BR>Thanx for trying to help me. <BR><BR>I have a listbox ina web page which contains some values. The problem is when i select one value form the list box, the records corresponding to the value are retrieved but the chosen value is not retained in the list box . how can i overcome this. Please help.<BR><BR>Thanx again<BR>-Melba

  2. #2
    Join Date
    Dec 1969

    Default RE: retain value chosen in listbox

    If you are refreshing the page based on the selction from the list box then you need to add an if statement like <BR>this will assume you are useing a variable to set the request string<BR>Dim SomeVar<BR>SomeVar=Request.form("Yourdropdownname" )<BR> <BR>&#060;option &#060;% if somevar="This option" Then Response.write "Selected"%&#062;&#062;This option <BR><BR>if the options are hard code then you will need to add that to each option if it is populated from a recordset you only need to do it once<BR>

  3. #3
    Melba Guest

    Default RE: Thanx

    Hi Steve,<BR><BR>Thanx a lot. It worked fine.<BR><BR>- Melba<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts