MaintainState

Results 1 to 3 of 3

Thread: MaintainState

  1. #1
    Join Date
    Dec 1969
    Posts
    613

    Default MaintainState

    I have a option list box that allows the user to select a sort option. That option runs the apropriate sql query, but when the query returns the data to the form the list box returns to the original state prior to the users selection.How do I maintain state on the list box so that the users selection remains visible? Any help would be very much appreciated

  2. #2
    Join Date
    Dec 1969
    Posts
    100

    Default RE: MaintainState

    Try this...<BR>sortBy is the list box where you select the sort criteria...<BR>sortStr=Request.QueryString("sortBy ")<BR>&#060;Select name="sortBy"&#062;<BR>&#060;option value="id"&#062;Id&#060;/option&#062;<BR>&#060;option value="fname"&#062;FName&#060;/option&#062;<BR>&#060;option value="lname"&#062;LName&#060;/option&#062;<BR>&#060;option selected value="&#060;%=sortStr%&#062;"&#062;Sort By &#060;%=sortStr%&#062;<BR>&#060;/select&#062;<BR>Hope this helps...<BR><BR>Vikki<BR>

  3. #3
    Join Date
    Dec 1969
    Posts
    613

    Default RE: MaintainState

    THX VIKKI YOUR AGREAT HELP!

Posting Permissions

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