Multi Select list doesn't retain value when returning to the page.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Multi Select list doesn't retain value when returning to the page.

Hybrid View

  1. #1
    Weezie Jefferson Guest

    Multi Select list doesn't retain value when returning to the page.


    I have a multi select list in a form. All my other controls retain their
    values after a post to a new page and the user clicks the Back button on
    their browser. However, the list is now blank.

    This list is a list that is filled with items as the user creates them and
    upon submission of the form, I have JavaScript select all items so that they
    are transmitted in the post. The items are transferred correctly to the
    Post page. However, upon clicking Back, the list is blank. The single item
    select boxes retain their values, the textboxes retain their values. Why
    won't this list retain its values?

  2. #2
    Aaron Guest

    Re: Multi Select list doesn't retain value when returning to the page.


    This happens to me also. Anyone know of a simple way to retain the values?


    "Weezie Jefferson" <Weezie.Jefferson@lalalalalalala.com> wrote:
    >
    >I have a multi select list in a form. All my other controls retain their
    >values after a post to a new page and the user clicks the Back button on
    >their browser. However, the list is now blank.
    >
    >This list is a list that is filled with items as the user creates them and
    >upon submission of the form, I have JavaScript select all items so that

    they
    >are transmitted in the post. The items are transferred correctly to the
    >Post page. However, upon clicking Back, the list is blank. The single

    item
    >select boxes retain their values, the textboxes retain their values. Why
    >won't this list retain its values?



  3. #3
    Kandi Venka Guest

    Re: Multi Select list doesn't retain value when returning to the page.

    Aaron, I posted this one to Experts-Exchange.Com and never got an easy
    answer. I got the ones I didn't want to do (like cookies or putting the
    list contents into a hidden variable and then re-loading the list upon
    load).

    It stinks that all the controls retain their values except the listbox :-(
    "Aaron" <Terak@lords.com> wrote in message
    news:3be6e54d$1@147.208.176.211...
    >
    > This happens to me also. Anyone know of a simple way to retain the values?
    >
    >
    > "Weezie Jefferson" <Weezie.Jefferson@lalalalalalala.com> wrote:
    > >
    > >I have a multi select list in a form. All my other controls retain their
    > >values after a post to a new page and the user clicks the Back button on
    > >their browser. However, the list is now blank.
    > >
    > >This list is a list that is filled with items as the user creates them

    and
    > >upon submission of the form, I have JavaScript select all items so that

    > they
    > >are transmitted in the post. The items are transferred correctly to the
    > >Post page. However, upon clicking Back, the list is blank. The single

    > item
    > >select boxes retain their values, the textboxes retain their values. Why
    > >won't this list retain its values?

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center