Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Loading Combo's (dropdownlist) and java script

Thread Tools

Loading Combo's (dropdownlist) and java script

Posts: n/a

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

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?


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
How to execute a script from another script and other script does notdo busy wait. Rajat Python 3 01-08-2010 02:05 PM
RE: How to execute a script from another script and other script doesnotdo busy wait. VYAS ASHISH M-NTB837 Python 2 01-07-2010 08:18 PM
[OT] Is loading the second Java application faster than loading the first? David Segall Java 2 01-02-2007 04:41 PM
How to do many java script and other script on loading in sam layout Javascript 3 10-07-2005 01:40 PM
Image loading using javascript. Handling timeouts and parrallel loading under IE Javascript 4 08-28-2005 02:02 PM