AJAX :: AutoCompleteExtender Won't Drop On Page?
Apr 15, 2010
This is my VERY FIRST experience with AJAX, so be as non-elitist and as clear as possible -- mayve even to the point of talking to me like I'm a child.
GIS programmer add an autocomplete search box to her mapping application. Before I can do that, I need to understand how to do it in a simple place first. I'm working with Visual Studio 2008 on my desktop machine and my website files are on a Windows 2003 Server running IIS 6 to which I have a mapped share called X:. Yesterday, I downloaded the AJAX Control Toolkit and added it to Visual Studio. It shows up in my toolbox and I can add and remove items. Cool. I can start an "ASP.NET Web Application" from Visual C# -> Web and I can drop many controls on the page with design view, but the extenders do not drop there. Particularly, I am interested in the AutoCompleteExtender. If I double-click, nothing happens. If I drag it over the design view, I see a slashed circle. If I add it in the source view, it gets highlighted and I'm told "Element 'AutoCompleteExtender' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing." The web.config is actually not missing.
I have been told by a friend that I may need to add something to my Web.config to enable AJAX stuff, but he offered nothing else on that. I see a system.webServer section in my Web.config and a comment above it that tells me it is not required for IIS versions earlier than 7.
Also, if I drop a TextBox on my page and try to choose an extender, the AutoCompleteExtender is listed in the Extender Wizard; however, adding it this way ends up with the same result.
View 1 Replies
Similar Messages:
Jan 20, 2010
i have tried autocompleteextender using page method and without master page and its working. but now im try to put them into master and its not working. this is my code***********pagename.ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="C_TestAutoComplete2.ascx.vb" Inherits="C_TestAutoComplete2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
[code]...
View 1 Replies
May 7, 2015
I want to try and suggest list of company from sql server. in a normal web form , the code works but using in the master page it does not work.
Below is the code
<asp:TextBox ID="TextBoxSearchCompany" class="form-control" placeholder="Search company..." runat="server"/>
<asp:AutoCompleteExtender
ID="txtName_AutoCompleteExtender"
runat="server"
DelimiterCharacters=""
Enabled="True"
[Code] ....
I added the following Ajax reference
<asp:ToolkitScriptManager EnablePageMethods="true" ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
But when I run the app nothing shows.
View 1 Replies
Sep 5, 2010
I have created an autoextender & cannot seem to get it to work within my pages. So I'm missing something probably small yet important.
The webservice AutoComplete.asmx, when called by itself, does return data correctly.
The codebehind for AutoComplete.asmx is located in the App_Code folder.
AutoComplete.asmx and the page from which I am calling it are both located in the root folder.
AutoComplete.vb:
[Code]....
View 2 Replies
Aug 10, 2010
I have a page that has a cascading drop down. It works perfectly when I start with an empty page and populate data to save a new row in a db table. However, when I try to load an existing row to the page, the parent is populated, but the child and cdd are not populated. During the load, I set the ccd.selectedvalue to a valid value, but by the time the page is rendered, there is no selection. I am sure it is something simple, but just don't see it.
View 2 Replies
Nov 19, 2010
I have just added ajax tool kit to my VS 2008.When I drag and drop any ajax control on to aspx page it is not visible on aspx page.why?
View 4 Replies
Sep 2, 2010
In the tutorial for autocomplete text box for static page method in c# the following lines of code is given. When i use it my website using c# it gives error 'invalid term "in" showing in line 7.
[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();
}
View 2 Replies
Aug 20, 2010
I am using autocompleteextender to receive list of projects. Is there any way that, given list of projects can hold a hidden values like a dropdownlist? I need project ID as hidden value...so that when I select a project from the list, I can retrieve the ID using C#/ASP.Net.
View 2 Replies
Nov 16, 2010
i have used fallowing code
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="TextBox1"
MinimumPrefixLength="1" ServiceMethod="GetNameInfo" ServicePath="WebService.asmx">
</cc1:AutoCompleteExtender>........
View 1 Replies
Mar 11, 2010
i'm using visual web developer 2008 express edition, i added the ajax toolkit to the tools without issue. SOME tools, like the accordian (and others) allow me to drag and drop them onto my forms. but others, such as the autocompleteextender wil not allow me to drag and drop them onto a form. i just get a circle with a line through it (as if to say - this is not allowed) - why is that?
i tried coding the extender in manually like many examples i've seen online:
<cc1:AutoCompleteExtender TargetControlID="txtName" ServiceMethod="GetCustomers" ServicePath="AjaxService.asmx"
MinimumPrefixLength="1" ID="AutoCompleteExtender1" runat="server">
</cc1:AutoCompleteExtender>
but it underlines "cc1" and gives me the error: "unrecognized tag prefix"
what am i doing wrong?
View 2 Replies
Oct 19, 2010
I've got an AutoCompleteExtender on one of my pages, it seems to be working fine aside from this strange behaviour: Let's say I key in 2 characters, the suggestion list would display. When I press on backspace to delete those 2 characters, wait until the suggestion list to disappear, and re-enter those 2 characters, the suggestion list would no longer display (or sometimes would flicker for about a second after losing focus from the textbox) and I'll need to refresh the page just to get it working again.
However, if I do press backspace and delete those 2 characters but not let the suggestion list to disappear and re-enter new characters, it would continue displaying with correct suggestions. This behaviour seems to happen only in IE8, (although it works with IE8 using Compatibility View and Firefox)... My code is almost the same as the sample on this site except for the animations, and the service looks up in a database table.
[Code]....
View 5 Replies
Nov 13, 2010
I have implemented autocompleteextender on textbox, everything works fine, however please help me with this minor thing.In textbox whenever I enter a value it get stored in memory
e.g I have typed 'hello' & press enter. The next time I press 'h', 'hello' appears below it, & hides the autocompleteextender. Is there a way to switch this function of text box
View 2 Replies
May 21, 2010
I am having a problem with the AutoCompleteExtender contol that I've put up on my webpage. I have this employee page where the seach is done at the very top and I'm using this control ; The formatted name is my search key that I'm doing in my web method. Now when I am deleting an employee and reloading the page...the Formatted name still appears during the page load. I've to close the window and load it again to get the updated employee list.
<asp:TextBox
ID="txtFName"
runat="server"
[code]...
View 5 Replies
May 24, 2010
I am using AjaxAutoCompleteExtender in my asp.net program (C#) . I am applying the extender to a texbox and using internal Web Service. I am getting the desired result, when i am running from the development environment. After Publishing the site to IIS, I am not getting the list and not showing any errors. I have turned off custom errors. My website is not an Ajax Enabled WebSite. So i added the lines into my Web.Config.I tried all service path.. http://localhost/Test/ WebService.asmxhttp://192.109.1.8/Test/WebService.asmxand i tried ~/Test/WebService.aspxWhile testing from the development environment, i am using the last one.I am not sure whether this is the problem with the service path or any permission issue.
View 3 Replies
Jun 9, 2010
I have an AutoCompleteExtender control as below. I have tested the web service and it is working. When I debug, there is no error message of any kind. But when I type in the TextBox1, the auto completion does not work. Does somebody know what could be the cause?
<
ajax:AutoCompleteExtender
ID="TextBox1_AutoCompleteExtender"
runat="server"
CompletionSetCount="40"
MinimumPrefixLength="1"
ServicePath="http://ourIntranet/webServiceConsistentName.asmx"
TargetControlID="TextBox1"
ServiceMethod="http://ourIntranet/webServiceConsistentName.asmx?op=GetConsistentNameList">
</ajax:AutoCompleteExtender>
View 5 Replies
Apr 7, 2010
I am using ASP.NET 3.5...I have a text box where I am using the AutoCompleteExtender for search.
When user enter the key the serach shows the "ProjectNumber-ProjectName" in the search result....after selecting any of this...only ProjectNumber is entered in the textbox (I am using hidden control to store key values)...everything works fine till here.Now I have a problem with values stored in the hidden control...for example in the text box there are three ProjectNumbers ..A,B,C....now I go ahead and delete all these three and enter the key word again...the search work fine but when I select any value the Text box is populated with old value (coming from hidden control) like A,B,C and then new value D
Please suggest me how I can assign the hidden text box value with the new text box values after the selection is done...
function KeySelected(source, eventArgs) {
var labelVal = document.getElementById('<%=this.Hidden1.ClientID%>').value;
var userValues = "";
[code]...
View 10 Replies
Aug 24, 2010
How can I use the contextKey of an AutoCompleteExtender ? When I had a search, I got to know that using javascript we can fire the contextkey to the webservice writing this script and how to use it in webservice ????
View 3 Replies
Apr 12, 2013
My master page code:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="test.master.cs" Inherits="test" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
[code].....
Cs code:
[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
public static string[] SearchCustomers(string prefixText, int count, string contextKey)
{
//return default(string[]);
string[] movies = { "Star Wars", "Star Trek", "Superman", "Memento", "Shrek", "Shrek II" };
return (from m in movies where m.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) select m).Take(count).ToArray();
}
Where am i going wrong?
View 1 Replies
Jan 18, 2010
Is the a way to have the Ajax drop down overlay other control on the page (currently I have a gridview and I cannot see much of the drop down)?
[code]....
View 5 Replies
Jan 25, 2010
Is it possible to set the font size of the drop down text. Also is there a way to limit number of dropdown lines and have a scroll control.
View 14 Replies
Jun 1, 2010
use a textbox and the AutoCompleteExtender to search for the customer. For example, on the PurchaseOrder form, I have a textbox with a Customer field, and when I type in the name of the customer, the AutoCompleteExtender shows the possible matches.Now, it takes a few seconds to show the list of values, even with setting the correct values on the extender, and if the user types in the name of the company, e.g. Contoso, and leaves the textbox, there might be 2 Contoso's in the database. The AutoCompleteExtender does not continue when the user leaves the textbox, thus the CustomerId is not determined yet.
View 1 Replies
Mar 24, 2011
can I have an auto extender to my textbox which is in datagridview. I am using it in footer template for inserting a new row to the gridview.
View 1 Replies
Sep 10, 2010
[Code]....
[Code]....
View 3 Replies
Jan 12, 2011
I'm using Visual Studio 2008, .NET 3.5, on a Vista 64 bit machine. I have a simple application that has 2 textboxes that are both setup with an AutoCompleteExtender. They both work as expected with the following exception only in IE7. The top textbox has the focus by default, I set this in a pageLoad javascript function.
[Code]....
I enter in some text in the top textbox and after 2 characters (MinimumPrefixLength="2") I get the list from my webservice and I've coded it so that once an item from the list is selected it uses the OnClientItemSelected="eventHandlerPnum"to call the javascript function 'eventHandlerPnum' which sets the document.location to a url with the item as a query parameter. This works fine the first time. If I use the back button when I start entering text into the top textbox I get the browser cached entries in a dropdown after the first character and the list from my webservice doesn't show up after the second character.
I've tried this in Firefox, Chrome, and Safari and they all behave correctly, ie they always display the web service list after the second character.
View 3 Replies
Feb 10, 2011
When I type into the TextBox that the AutoCompleteExtender is associated with, I get no response whatsoever. Here's the code:
TextBox + AutoCompleteExtender (cell is a TableCell object in a TableRow in a etc etc):
[Code]....
View 1 Replies