-
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?
-
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?
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|