Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Re: setting selectedIndex in combo box after populating


Message #1 by btodd@a... on Fri, 1 Feb 2002 06:08:19
> Is this possible in VBScript..?



I do it like this for JS challenged browsers (adding bits to your code):



<%

     for j = 1 to objRS.PageCount

       vselected = ""

       if objRS.PageCount = currentPage then

         vSelected = "selected"

       end if

       Response.Write "<option " & vSelected 

& "value="""&j&""">"&j&"</option>"

     next

%>


  Return to Index