Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi..
i am using ajax toolkit to call web method.But call is getting abort.Till web method values coming while binding its getting abort.posting is happening but not getting proper response

aspx:
<asp:ScriptManager ID="ScriptManager1" runat="server EnablePageMethods="true"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                              <ContentTemplate>
                       <asp:TextBox runat="server" ID="password" CssClass="form-control" TextMode="Password" ValidationGroup="login" />
                       <asp:RequiredFieldValidator runat="server" ControlToValidate="password" CssClass="text-danger" ErrorMessage="Passowrd is required" ValidationGroup="login" />
                         </ContentTemplate>
                   </asp:UpdatePanel>;


code behind:
WebMethod, ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false)]
        public static List<string> Getindustrailnamebyautocomplete(string prefixText, int count)
        {
            List<string> result;
            result= UserdetailsBAL.Getindustrailnamebyautocomplete(prefixText);

            return result;
        }


What I have tried:

don't know why its getting abort
Posted
Updated 22-Apr-16 23:04pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900