Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: AJAX TabContainer - losing ListBox data on postback

Thread Tools

Re: AJAX TabContainer - losing ListBox data on postback

Posts: n/a
On Oct 23, 8:30*am, bruce barker <(E-Mail Removed)> wrote:
> the browser only sends back the selected value to the server. if
> javascript adds a new value, when the postback is processed on the
> server, the server side DropDownList has no matching item to select.
> in oninit you need to add code on the server side that adds the new
> value to the DropDownList. you could look in the form collection for the
> value.
> -- bruce (
> Mel wrote:
> > On a tab I have one DropDownList which requires a postback and two
> > ListBoxes which do not require any postback because I just have some
> > javascript, defined in the aspx file, to copy items from one listbox
> > to the other. *All 3 of these controls exist in a table which is
> > inside an UpdatePanel. *When the drop down list value changes and the
> > postback occurs the data that I had in my listbox control disappears.
> > How do I fix this?

> > (using: 2.0,, visual studio 2005, winxp pro sp2)

Huh? Did you mean Listbox not DropDownList? The drop-down is working
fine, it's the Listbox data that gets cleared after the drop-down list
causes the postback.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX TabContainer - losing ListBox data on postback Mel ASP .Net 3 10-23-2008 07:31 PM
Ajax TabContainer inside a FormView - Data binding Update doesn't Colorstone ASP .Net 2 10-07-2008 09:39 PM
Little problem with TabContainer (ajax) ASP .Net 1 01-19-2008 06:40 AM
AJAX TabContainer Problem =?Utf-8?B?QW5kcmV3?= ASP .Net 0 09-27-2007 09:04 AM
AJAX TabContainer TabPanel Repeater smnbss ASP .Net 0 04-02-2007 11:24 AM