Loading Combo's (dropdownlist) and java script

H

Hero41Day

Hi,

I have a very weird problem with a control that I'm trying to build
now.

I'm having two dropdownlists controls (ASP.NET) where the primary one
hold the categories and is populated when the page is loaded, and the
second one is populated depend on the value selected in the first one.
To load the 2nd dropdown I'm using a combination of AJAX (to retrieve
the data) and javascript to fill in the items (the postback is disabled
so NO page refresh is taking place when the selected item occurred).

The weird thing that happen is that upon page post-back all the items
that I've added to the 2nd dropdownlist (using javascript)
disappeared and the selected value for the 1st stays the same.

If I make them to work with autopost back, everything works great
(values preserved in the dropdownlist.) does anyone has any idea what
should I do?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top