Hi. I want to implement casceding dropdown and for that i have used update panel. But when I am using RouteTable.Routes.MapPageRoute in Application_Start(), Ajax Method not working. It refreshes the page..
Please help me...
void Application_Start(object sender, EventArgs e)
{
RegisterRoute(RouteTable.Routes);
}
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:DropDownList ID="ddlState" runat="server" AppendDataBoundItems="true" AutoPostBack="true"
CssClass="form-control ddl" OnSelectedIndexChanged="ddlState_SelectedIndexChanged">
<asp:ListItem Text="--Select State--" Value="-1"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddlCity" runat="server" AppendDataBoundItems="true" CssClass="form-control ddl">
<asp:ListItem Text="--Select City--" Value="-1"></asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>