472,982 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,982 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 1211
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.