AJAX cascading dropdown in Visual Studio

HLRosenberger used Ask the Experts™
I've created the project in this video:  http://www.asp.net/ajax/videos/how-do-i-use-the-aspnet-ajax-cascadingdropdown-control-extender

The code that I downloaded was for VS 2008.  I'm using VS 2010.   I've created the project in VS 2010.  No compile errors.  

However, when I run, I get my screen with the three down downs, but they are not populated.   I do not even get the prompt text.  It's like the data from the XML file is not being read.  Can anyone take a guess as to what I might be missing?   I attached my HTML below.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="SetDocumentType.aspx.vb" Inherits="Default2" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <form id="form1" runat="server">
    <div style="width: 525px">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <br />
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <asp:DropDownList ID="DropDownList1" runat="server" Width="182px">
                <br />
                <br />
                    <asp:DropDownList ID="DropDownList2" runat="server" Width="182px">
                <br />
                <br />
                    <asp:DropDownList ID="DropDownList3" runat="server" Width="182px" AutoPostBack="True">
                    </asp:DropDownList><br />
                    <br />
                    <asp:Label ID="Label1" runat="server" Width="327px"></asp:Label><br />
                    <br />
                    <ajax:cascadingdropdown id="CascadingDropDown1" runat="server" category="Make"
                        loadingtext="[Loading makes...]" prompttext="Please select a make" servicemethod="GetDropDownContents"
                        servicepath="CarsService.asmx" targetcontrolid="DropDownList1">
                    <ajax:cascadingdropdown id="CascadingDropDown2" runat="server" category="Model"
                        loadingtext="[Loading models...]" parentcontrolid="DropDownList1" prompttext="Please select a model"
                        servicemethod="GetDropDownContentsPageMethod" targetcontrolid="DropDownList2">
                    <ajax:cascadingdropdown id="CascadingDropDown3" runat="server" category="Color"
                        loadingtext="[Loading colors...]" parentcontrolid="DropDownList2" prompttext="Please select a color"
                        servicemethod="GetDropDownContents" servicepath="CarsService.asmx" targetcontrolid="DropDownList3">
        <br />
        <br />
        <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
        <asp:Button ID="cmdAccept" runat="server" Text="Accept" />

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®


Also, the service that gets called is GetDropDownContents.  It has parameters.  How/Where are these parameters passed, because in the properties where the Service Method is set, there are no parms.
This issue turns out to be my own fault.   I had installed the 3.5 .NET version of the Toolkit, instead of 4.0 version.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial