formats

How to create a Default “Enter” Button for Forms/PostBacks

Issue: How to create a Default “Enter” Button for Forms/PostBacks Resolution: in page load add Page.RegisterHiddenField(“_EVENTTARGET”, “AnyButtonName.UniqueID”);

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>

Home 2014 February