Solved

ASP.NET Dropdown lists without refreshing the page

Posted on 2008-10-06
4
390 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

18 Experts available now in Live!

Get 1:1 Help Now