Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP.NET Dropdown lists without refreshing the page

Posted on 2008-10-06
4
404 Views
Last Modified: 2008-10-16
I have some simple dropdown lists in pairs, like Country/State selection, what I want is: when user selects a country from the country list, the list of the states of that country will be shown in the state dropdown list, and the selection of the country is still preserved in the country list. Most important: there is no postback so the page will not refresh every time when a selection is made. What's the easiest way to implement this? Do I have to use AJAX? I know the new AJAX CascadingDropDown control is perfect for this, but I found I couldn't find the ASP.NET AJAX Control Toolkit for .NET 2.0 in their website, all the current downloads seem to be in framework 3.5? Correct me if I am wrong, thanks for any help.
0
Comment
Question by:heyday2004
  • 2
4 Comments
 
LVL 20

Assisted Solution

by:informaniac
informaniac earned 100 total points
ID: 22656755
0
 
LVL 4

Expert Comment

by:brene
ID: 22656900
I believe this is the latest version that still works in .NET 2.0 (informaniac linked to the oldest)
http://www.codeplex.com/AjaxControlToolkit/Release/ProjectReleases.aspx?ReleaseId=11121

and look in here for the documentation & more
http://www.asp.net/ajax/downloads/archive/
0
 
LVL 1

Expert Comment

by:crumber
ID: 22683760
Are these dropdown lists tied or populated through the database or are the items set manually.
 
0
 
LVL 4

Accepted Solution

by:
brene earned 400 total points
ID: 22683977
You can populate them however you like. When a selection is made it calls a webservice to get the data for the next dropdownlist. In the webservice you could hard code the options, obtain them from a database or from an xml file or whatever else.

I'm not sure if there is any difference between this version and the latest ones but take a look here
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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