467,923 Members | 1,249 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,923 developers. It's quick & easy.

Problems with listbox

I am making changes to listbox contents in JavaScript and those changes are
not persisted when a PostBack happens. Anything I add during Server events
are saved and restored. I only have access to the information for
JavaScript. I have an embedded object that cannot be accessed at server
execution time so I need to save information in JavaScript. If I add the
information to hidden text field it is retained. Why not the listbox. I
want to have a hidden listbox which contains a list of things to do in
JavaScript once the page is reloaded.

Is it just me or does it seem arbitrary which things MS determined should be
saved and not the user?
Nov 18 '05 #1
  • viewed: 1107
Share:
2 Replies
shurely thish ish all to do with ViewState?

no?

if you turn if off for something it forgets what you did with it

"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:1F*********************@news04.bloor.is.net.c able.rogers.com...
I am making changes to listbox contents in JavaScript and those changes are not persisted when a PostBack happens. Anything I add during Server events are saved and restored. I only have access to the information for
JavaScript. I have an embedded object that cannot be accessed at server
execution time so I need to save information in JavaScript. If I add the
information to hidden text field it is retained. Why not the listbox. I
want to have a hidden listbox which contains a list of things to do in
JavaScript once the page is reloaded.

Is it just me or does it seem arbitrary which things MS determined should be saved and not the user?

Nov 18 '05 #2
View state is on for all control on page. I have done other tests and if I
loaded (server side) the items are kept. There is something about adding in
Javascript that does not let the control know that other changes (non server
side) have happened so that the changes will be made to the viewstate
"evolve" <NOngnSPAMpeaSPAMrseNO_S__PAMhotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
shurely thish ish all to do with ViewState?

no?

if you turn if off for something it forgets what you did with it

"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message news:1F*********************@news04.bloor.is.net.c able.rogers.com...
I am making changes to listbox contents in JavaScript and those changes are
not persisted when a PostBack happens. Anything I add during Server

events
are saved and restored. I only have access to the information for
JavaScript. I have an embedded object that cannot be accessed at server
execution time so I need to save information in JavaScript. If I add the information to hidden text field it is retained. Why not the listbox. I want to have a hidden listbox which contains a list of things to do in
JavaScript once the page is reloaded.

Is it just me or does it seem arbitrary which things MS determined

should be
saved and not the user?


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Irwin M. Fletcher | last post: by
17 posts views Thread by Lloyd Sheen | last post: by
6 posts views Thread by Sparky Arbuckle | last post: by
11 posts views Thread by John Dann | last post: by
2 posts views Thread by dan heskett | last post: by
2 posts views Thread by tshad | last post: by
6 posts views Thread by Papa.Coen | last post: by
reply views Thread by rn5a | last post: by
2 posts views Thread by =?Utf-8?B?U3RlcGhlbiBSaXRjaGll?= | last post: by
2 posts views Thread by David | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.