how to make these 2 dropdownlist

Posted on 2004-11-12
Last Modified: 2012-05-05
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

Question by:duclee
    LVL 21

    Accepted Solution

    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.

    Author Comment

    i think so, but is there anyway else?
    LVL 22

    Expert Comment

    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.

    LVL 6

    Expert Comment

     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

    Author Comment

    i use javascript, and its ok now, thanks all

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now