how to make these 2 dropdownlist

I have two dropdownlists:
- The first Gets the manufacturers onload
-The second gets the models from the selected value of the first

when i choose 1 from the first ddl, the second ddl will get values without postback

example:
http://www.thegioimobi.com/Compare.aspx?ModelId1=24&ModelId2=551&ModelId3=617
ducleeAsked:
Who is Participating?
 
surajgupthaConnect With a Mentor Commented:
If you dont want a post back. You will need to store the values that are to be displayed in the javascript.

In the link provided by you they store all the phones and their types in a javascript array. When a phone is clicked, the array is checked for matches and the second drop down is populated.

Hope this helps you.
0
 
ducleeAuthor Commented:
i think so, but is there anyway else?
0
 
CJ_SCommented:
If you wait for ASP.Net 2 then you can make use of postbacks through XML, which does not refresh the entire page. Instead it only refreshes the data.

0
 
ryerrasCommented:
Duclee,
 You either have to go back to server to get the data into the second drop down. Or you have to store all the data for the second data into a javascript array to do the manipulation. There is no other way. Choose one and let us know
0
 
ducleeAuthor Commented:
i use javascript, and its ok now, thanks all
0
All Courses

From novice to tech pro — start learning today.