Click here to Skip to main content
15,666,183 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

<asp:ScriptManager ID="ScriptManager1" runat="server EnablePageMethods="true"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                       <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" />

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
Updated 22-Apr-16 23:04pm

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