Hi guys,
I have two list boxes that I use for dual list box functionality, and there are four buttons that allow movement of the items from one box to another. All this is performed using javascript functions attached to buttons those 4 buttons. There is one more button that is supposed to get values from the right box and print reports. All controls are in update panel. In Pre-Reneder method I am checking to see if there are any items in the right box, and there aren't ever any. Is there something that I need to do so state of the controls would be maintained?
Are you adding the Right side listbox items in client side by JS/DHTML? If so the viewstate will not sync with the server.
Yes I am using javascript/dhtml. So is there other way to do it on client side that will sync up with server?
Hi
I'm afraid there is no way to do this.Please change it to using AJAX to do that at server side.
Good luck.
Hi,
Please refer to this article[ http://aspalliance.com/1071_Smart_ListControl_in_ASPNET_1x20 ], it explains the reason and gives a solution.
Hope this helps.
No comments:
Post a Comment