logo
down
shadow

Getting 500 error while requesting to webservice using Ajax AutoCompleteExtender


Getting 500 error while requesting to webservice using Ajax AutoCompleteExtender

By : FamousDeXter
Date : November 20 2020, 03:01 PM
this will help That is because you are calling that web method using AJAX. Only Web services with a [ScriptService] attribute on the class definition can be called from script.
code :
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
//    [System.Web.Script.Services.ScriptService]
[System.Web.Script.Services.ScriptService]


Share : facebook icon twitter icon
AutoCompleteExtender is firing, webservice is returning results, but these are not being displayed

AutoCompleteExtender is firing, webservice is returning results, but these are not being displayed


By : Bjørn Pedersen
Date : March 29 2020, 07:55 AM
Any of those help Okay, in the end this turned out (somewhat annoyingly) a z-index time. I'm not sure what z-index a dialog that is displayed using the AjaxControlToolkit's ModalPopupExtender is given by default (the highest z-index I could see on the page was 10001).. but somewhere behind the scenes it was being given an attribute that meant that my popup suggestions (from the AutoCompleteExtender) always rendered behind the dialog (couldn't see this however until I returned enough results to get the suggestions apepar from beneath the dialog). In the end I had to override the z-index of the panel used as a dialog by the ModalPopupExtender AND the CompletionListCssClass of the AutoCompleteExtender thus:
code :
            .popUpDialog
        {
            z-index: 99 !important;
        }

        .autoComplete_listMain
        {
            z-index: 2147483647 !important;
            background: #ffffff;
            border: solid 2px #808080;
            color: #000000;
        }
Why does AutoCompleteExtender WebService fail to be called when function is Shared?

Why does AutoCompleteExtender WebService fail to be called when function is Shared?


By : user3687136
Date : March 29 2020, 07:55 AM
this will help If you're calling a page method then it must be Shared/static. But when calling methods attached to asmx services, accordining to John Saunders in this question, Why are Static Methods not Usable as Web Service Operations in ASMX Web Services?, web methods can't be Shared/static by design.
I'd have to guess that both are design limitations in the pipelines that retrieve pages vs. web methods.
Ajax Error Unknown server tag 'asp:AutoCompleteExtender'

Ajax Error Unknown server tag 'asp:AutoCompleteExtender'


By : user3831498
Date : March 29 2020, 07:55 AM
hop of those help? Unknown server tag 'asp:AutoCompleteExtender'. ,
what should i do to use AutoCompleteExtender
Ajax autocompleteextender calling webservice to search from 2 fields of database, its working now

Ajax autocompleteextender calling webservice to search from 2 fields of database, its working now


By : nanita414
Date : March 29 2020, 07:55 AM
wish helps you I m using ajax autocomplete which calls a web service to search name and code(name & code are fields of my datatable) , I got the answer,
code :
  [WebMethod]
        public string[] GetSupplier(string prefixText)
        {
            con.Open();
            //int count = 10;
            string sql = "Select * from SupplierMaster where name like @prefixText";
            SqlDataAdapter da = new SqlDataAdapter(sql, con);
            da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 500).Value = prefixText + "%";
            DataTable dt = new DataTable();
            da.Fill(dt);
            string[] List = new string[100];
            int i = 0;
            foreach (DataRow dr in dt.Rows)
            {
                List.SetValue(dr["name"].ToString(), i);
                i++;
            }

            string sql1 = "Select * from SupplierMaster where code like @prefixText";
            SqlDataAdapter da1 = new SqlDataAdapter(sql1, con);
            da1.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 500).Value = prefixText + "%";
            DataTable dt1 = new DataTable();
            da1.Fill(dt1);
            //string[] List = new string[dt.Rows.Count];
            //int i = 0;
            foreach (DataRow dr in dt1.Rows)
            {
                List.SetValue(dr["code"].ToString(), i);
                i++;
            }
            con.Close();
            return List;

        }
AJAX Toolkit AutoCompleteExtender with PageMethod: 401 Unauthorized error

AJAX Toolkit AutoCompleteExtender with PageMethod: 401 Unauthorized error


By : Aissaoui Amar
Date : March 29 2020, 07:55 AM
it helps some times Try moving the GetCompletionList() method from the user control's ascx.cs file to the page's aspx.cs.
Related Posts Related Posts :
  • Ninject passing reference in constructor
  • C# Entity Framework text SQL query wrapper
  • Core 2.0 MVC - AD Group Authorization for logging
  • Decentralized NLog Target per Http request
  • How to use x:Object and when?
  • Displays file icons in asp.net on GridView
  • How do I avoid two (or more) threads that work on a table at the same time to not work on same row?
  • Add xml attribute for property in DB First
  • How do i execute 2 sql queries by clicking a button [C#]
  • convert jsonstring to objects c#
  • How do request a correct access token in ASP.NET Core for Azure AD to access Microsoft Graph
  • How to run a .NET Core console application on Linux
  • UI not updating for bound element
  • C# Odata v4 open type raw values
  • DocumentFormat.OpenXml Modify Creator Propery of Document
  • How to SetBasePath in ConfigurationBuilder in Core 2.0
  • ASP MVC5 public readonly variable changes value when it should not
  • How to conditionally select item from hashset with queryable linq?
  • Progress Bar C# not showing the real progress
  • Correct logic to reconnect in SignalR with HubConnection
  • ComboBox with two or more sections
  • .NET listbox to SQLite DB
  • C# Ninject binding from Dictionary<Type, Type>
  • asp.net mvc -view displaying real-time progress status
  • Getting reference to dependent in service with generic type
  • Implementing EqualityCompare vs overriding GetHashCode and Equals
  • C# Linq Find all indexes of item in List<int> within another List<int>
  • XML image how to display at data grid columns in c#.net
  • How to override Equals and GetHash of HashSet
  • Creating Windows authentication and SQL Server authentication in login form
  • How to interop with Azure Service Bus topics created by MassTransit using Rebus?
  • MVC 5 Google Calendar Integration
  • C# - Use parallel arrays to calculate cost of a phone call in GUI
  • Use a int in entire code
  • How to display newly added element at the top of StackPanel in WPF?
  • T4MVC is generating T4MVC.cs and T4MVC1.cs
  • Remove blur effect on certain controls inside UserControl
  • Sql Transcation Query to Linq Query in Wcf Rest Service
  • Setting AWS S3 credentials in C# app
  • does not contain in an ObservableCollection
  • App doesn't run it crashed directly after I started it
  • Is it possible in Entity Framework MVC application to run .sql scripts on a different database
  • Type Inference with Deconstruct tuple assignment extension methods
  • Setting up mock objects for EF dbcontext to test repository methods
  • Using C# in XSLT with MSXSL 6.0
  • Absolute positioning of UIElement in FlowDocument in WPF
  • Display debuggers not showing up in Visual Studio 2017
  • Discord.NET Users playing the same game
  • Azure function output API call to 3rd party service
  • Unable to determine the relationship represented by navigation property ASP.NET core 2.0 Entity Framework
  • Regex to find group of Regex inside a word
  • When calling a method, when to reference the class, and when to reference the object?
  • AmazonCloudWatchLogsClient async methods failing with no error
  • Create FileStream in memory instead of saving a physical file on disk
  • ViewBag data coming from ActionFilter is persisting in session even after database
  • ERROR: the name 'lvSubCategories' does not exist in the current context
  • Why datetime can't recognise the string?
  • The property 'x' is not a navigation property of entity type 'y'
  • ASP.NET MVC - How to generate empty input boxes in loop when model is empty?
  • Need help writing regular expression
  • shadow
    Privacy Policy - Terms - Contact Us © voile276.org