Home > add autocomplete > add autocomplete page method error

add autocomplete page method error

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up AutoComplete AJAX Not Working up vote 2 down vote favorite I am using an AutoCompleteExtender from AjaxControlToolkit on a TextBox. To put it simply, when I drag and drop the AutoCompleteExtender tool on to my TextBox and then click on "Add AutoComplete page method", I get the following error: Cannot create page method "GetCompletionlist because no CodeBehind or CodeFile was found! After googling the error, I basically made my own web-service called AutoCompelte.asmx. Below is the code for that class: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace AutoCompleteTest { ///

/// Summary description for AutoComplete /// [WebService(Namespace = "http://microsoft.com/webservices/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services.ScriptService] public class AutoComplete : System.Web.Services.WebService { [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()] public static string[] GetCompletionList(string prefixText, int count, string contextKey) { // Create array of movies string[] movies = { "Star Wars", "Star Trek", "Superman", "Memento", "Shrek", "Shrek II" }; // Return matching movies return (from m in movies where m.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) select m).Take(count).ToArray(); } } } Of course, the above is dummy data.... Later on, I shall

Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ http://stackoverflow.com/questions/8593457/autocomplete-ajax-not-working / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter http://www.codeproject.com/Questions/111345/asp-AutoComplete-problem The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge   The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ asp:AutoComplete problem Rate this: Please Sign up or sign in to vote. See more: ASP.NET Description Here is the description of the issue : 1. I create a "ASP .NET Web Application" project, 2. I add two components (UpdatePanel and TextBox) to the default page : . 3. I select Textbox and click on item named "Add Extender..." from the context menu 4. When the popup window appears, I select the item named "Auto

Answers Home All Categories Arts & Humanities Beauty & Style Business & Finance Cars & Transportation Computers & Internet Consumer Electronics Dining Out Education & Reference Entertainment & Music Environment Family & Relationships Food & Drink Games & Recreation Health Home & Garden Local Businesses News https://answers.yahoo.com/question/index?qid=20130711113514AA7H8aq & Events Pets Politics & Government Pregnancy & Parenting Science & Mathematics Social Science Society & Culture Sports Travel Yahoo Products International Argentina Australia Brazil Canada France Germany India Indonesia https://social.microsoft.com/Forums/en-US/38b97b18-3413-4cd7-8df6-095fea8c82f7/autocomplete-from-custom-source-6-hours-still-not-working?forum=Offtopic Italy Malaysia Mexico New Zealand Philippines Quebec Singapore Taiwan Hong Kong Spain Thailand UK & Ireland Vietnam Espanol About About Answers Community Guidelines Leaderboard Knowledge Partners Points & Levels Blog add autocomplete Safety Tips Computers & Internet Programming & Design Next Cannot create page method "GetCompletionList" because no CodeBehind or CodeFile file was found!? Hi there, I am am in need of help with regards to the following error that I am getting when clicking on "Add AutoComplete page method" on a textbox control in an aspx page: "Cannot create page method "GetCompletionList" add autocomplete page because no CodeBehind or CodeFile file was found!". This is... show more Hi there, I am am in need of help with regards to the following error that I am getting when clicking on "Add AutoComplete page method" on a textbox control in an aspx page: "Cannot create page method "GetCompletionList" because no CodeBehind or CodeFile file was found!". This is related to adding an Ajax control to a webpage object such as a textbox. I have successfully added the Ajax Control Toolkit to my website toolbox in Visual Studio 2012. I have followed the following tutorial http://www.asp.net/ajaxlibrary/act_AutoComplete_simple.ashx and get the error when I get to step 4. Any help or advice will be greatly appreciated. Follow 2 answers 2 Report Abuse Are you sure you want to delete this answer? Yes No Sorry, something has gone wrong. Trending Now Gavin Rossdale Carla Mendoza WWE 2K17 Taye Diggs Alaska Airlines Business Cards Atlanta Braves Typhoon Megi iPhone 7 Rheumatoid Arthritis Symptoms Answers Best Answer: Provide servicepath: Source(s): Death Egg Zone ·

(Nederlands)Polska (Polski)România (Română)Singapore (English)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特別行政區 (中文)     Microsoft    Home       Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Autocomplete from custom source - 6+ hours, still not working. Using Forums > Off-Topic Posts (Do Not Post Here) Question 0 Sign in to vote Hey All, As I mentioned in the title, I've been at this for hours - read many posts, many tutorials etc. However, I cannot get a textbox to list auto-complete suggestions, whatever I try. .Net Framework 4.5 AJAX Control Toolkit 4.1.9.1213 (2013) Visual Studio 2013 VB.NET MS SQL 2012 (eventually) End goal is to pull a subset of data from a SQL table, and have it displayed as auto-complete suggestions. The database part is simple enough... it all seems simple enough, it just doesn't work. No errors or warnings, just no auto-complete suggestions at all. --- From what I've read, you have to manually add a Class and Web Service/Method. I've tried with, and without that, no result visible either way. Any advice / examples would be greatly appreciated. Resources Used (failed): http://www.asp.net/ajaxlibrary/act_AutoComplete_simple.ashx http://www.codeproject.com/Articles/144169/AutoCompleteExtender-with-data-from-ASPX-code-behi http://www.asp.net/ajaxlibrary/act_autocomplete_simple.ashx (and many more) Moved by Carl Cai Monday, July 07, 2014 1:34 AM (from vb) asp.net forum is more dedicated for these issues Friday, July 04, 2014 1:04 AM Reply | Quote Answers 0 Sign in to vote Resolved it by cobbling together various resources, and trial and error over a few days: Add CodePlex's AJAX Control assembly via NuGet (or manually download and add reference).Register the assembly: Put this line as the 2nd line on each page the AJAX controls are on: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>Add (or change) the script manager (may be on master page, or current page): ... Remove the scriptreference to MSAjaxRemove the following attribute from every s

 

Related content

No related pages.