prathyusha

prathyusha

  • NA
  • 180
  • 74.7k

cascading dropdownlist

Jan 5 2013 4:53 AM
  <asp:DropDownList ID="txtCity" runat="server" CssClass="input_bar" 
                            onselectedindexchanged="txtCity_SelectedIndexChanged" TabIndex="0">
                        </asp:DropDownList>
                       <ajaxToolkit:CascadingDropDown ID="AutoCompleteCity" runat="server" Category="Country"
                            TargetControlID="txtCity" PromptText="Hyderabad" ServicePath="WebService.asmx"
                            ServiceMethod="GetCityList">
                        </ajaxToolkit:CascadingDropDown>

 protected void txtCity_SelectedIndexChanged(object sender, EventArgs e)
    {
        Session["City"] = Server.HtmlEncode(txtCity.SelectedItem.Text);
        lblTitle.Text = txtCity.SelectedItem.Text;
    }
but the event is not raised y?

Answers (1)