----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: BusyWizy Message 2 in Discussion Hi, One of the ways to work around this problem would be to use 2 hidden asp.net label controls. While adding or removing items from each listbox using clientside code, do the same from the hidden labels as well. Of course on pageload u will have to ensure that the labels contain the list of ids in the textbox (comma separated.). you will find tons of samples on the web illustrating this concept. In case u can't find it yourself, lemme know, I'll hunt for a sample on my hard disk and send it to you. Regards, Nauzad Kapadia [MVP] -----Original Message----- From: siji [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 4:30 PM To: MumbaiUserGroup Subject: ASP.NET problem using Listbox. ----------------------------------------------------------- New Message on MumbaiUserGroup ----------------------------------------------------------- From: siji Message 1 in Discussion I have two listboxes on an ASP.NET form. Client side, I'm allowing the user to move elements back and forth from each listbox. I'm using javascript that uses the document.createElement, and the options collection of each listbox to add and remove options. Problem is that when I post back, the items collection of each of these controls does not reflect the options that were added or removed on the client-side. Any thoughts on why this is. To work around this, I'm doing a post-back every time they select to move options, but this seams like a lot of overhead just to move an item from one listbox to another. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED] ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
