formats

“404: Not Found” error when calling a web method – Cascading Dropdown

Issue: “404: Not Found” error when calling a web method – when using Cascading Dropdown

Resolution:

Step 1: Add Script Manager as below

<asp:ScriptManager ID=”ScriptManager1″ runat=”server”>
<Services>
<asp:ServiceReference Path=”CascadingDropDown.asmx” />
</Services>
</asp:ScriptManager>

Step 2: Add code in dropdown in update panel.

<asp:UpdatePanel ID=”UpdatePanel1″ runat=”server”>
<ContentTemplate>

<cc1:CascadingDropDown ID=”CascadingDropDown1″ runat=”server”
Category=”Category” TargetControlID=”Calling_DropDown” PromptText=”Select”
LoadingText=”Loading….” ServicePath=”~/CascadingDropDown.asmx”
ServiceMethod=”GetData” >
</cc1:CascadingDropDown>

</ContentTemplate>
</asp:UpdatePanel>

Home Asp.Net “404: Not Found” error when calling a web method – Cascading Dropdown