473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
2 1225
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Irwin M. Fletcher | last post by:
ListBox DataSource DisplayMember Property Problems in C# I have a (single select) listbox with data and when I click on the list I can't get the right text selected. My listbox is setup...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
6
by: Sparky Arbuckle | last post by:
The code below works to an extent. The problem with it is that no matter which item is selected, the first one in the list is always the item that gets added/removed. How can I alleviate this...
11
by: John Dann | last post by:
I'm still struggling to find a way of reordering the items within the same single listbox with drag and drop. I think I've got the drag working but it's the drop code I can't figure out. What I...
2
by: dan heskett | last post by:
I am owner-drawing a listbox, in an attempt to create a nice list with some custom "fields" and text layout. Essentially it works, but I must be missing something big, conceptually, because I...
2
by: tshad | last post by:
I have a page that has been displaying some weird behavior. I have 2 radio buttons that work fine until I press the link button with an item selected in my link box (if an item is not selected,...
6
by: Papa.Coen | last post by:
I've just spend a lot of time solving the following problem: I used dotNet 2.0 / Visualstudio 2005 / C# / aspx, enable viewstate is set on all controls. I have 2 listboxes; the left contains items...
0
by: rn5a | last post by:
I have 2 ListBoxes which get populated with records from a database. The Form has a Button as well. Note that users can select multiple items in both the ListBoxes. When a user selects items...
2
by: =?Utf-8?B?U3RlcGhlbiBSaXRjaGll?= | last post by:
Hi NET1.1 / Winforms I have a listbox that I am binding to a table via the DataSource property. However I want to be able to programmatically select values in this listbox so I am using the...
2
by: David | last post by:
Dear All I'm trying to use a multi-select listbox as criteria to either add new record or edit the current record of the destiantation table with each row selected in the box. This works fine...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.