Cascading dropdown is not working

Discussion in 'ASP.NET / ASP.NET Core' started by pradeepika, Jan 14, 2010.

  1. Hi,

    Cascadingdropdown is not working on discountasp.net site. It works fine in my local server but not on discountasp.net.
    Country dropdown loads fine but on selecting a country, state dropdown does not load at all and state dropdown never become active. it will be disabled.
    I am using webservice to get the state based on the country selected from DB.
    here is the html code...
    <td width="20%" align="left" class="trContent"><asp:Label ID="lblCountry" runat="server" CssClass="label" Text="Country "></asp:Label><asp:Label ID="Label2" runat="server" Text="*" CssClass="errorMessage" /> </td>
    <td width="30%" align="left" class="trContent"><asp:DropDownList ID="cmbCountryAdd" runat="server" CssClass="dropDown" ></asp:DropDownList></td>
    <td width="20%" align="left" class="trContent"><asp:Label ID="lblState" runat="server" CssClass="label" Text="State "></asp:Label><asp:Label ID="Label3" runat="server" Text="*" CssClass="errorMessage" /></td>
    <td width="30%" align="left" class="trContent"><asp:DropDownList ID="cmbStateAdd" runat="server" CssClass="dropDown"></asp:DropDownList></td>
    <cc1:CascadingDropDown
    ID="CascadingDropDown1"
    runat="server"
    TargetControlID="cmbCountryAdd"
    Category="Countries"
    PromptText="Select a Country"
    ServicePath="Countries.asmx"
    ServiceMethod="GetCountries" PromptValue="1000" />
    <cc1:CascadingDropDown
    ID="CascadingDropDown2"
    runat="server"
    TargetControlID="cmbStateAdd"
    ParentControlID="cmbCountryAdd"
    PromptText="Please select a State"
    ServiceMethod="GetStatesForCountriesAdd"
    ServicePath="Countries.asmx"
    Category="States" PromptValue="1000" />

    any help would be greatly appriciated...
     

Share This Page