.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

AutoComplete extender result display location

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :ASP.Net


I don't see a property that would help define the location where matched items should be displayed. I have a strange behavior where if there are multiple matches, AutoComplete extender displays the list of matches nice right below my TextBox. However, if there's only one match, it's displayed some 30 or so pixels above the TextBox. Strangely, I find myself hitting the up arrow key because the suggestion is displayed above but looks like the expected behavior is down arrow.

Is there a way to specify where the suggestions list should be displayed?

View Complete Post

More Related Resource Links

Autocomplete extender not firing


Hello. I have a ajax autocomplete extender and when I enter something to textbox nothing happened. Why is that?

Here is my codes.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Configuration;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;

/// <summary>
/// Summary description for WebService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// 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 WebService : System.Web.Services.WebService {

    string[] arr;

    public WebService () {

        //Uncomment the following line if using designed components 

    public string[] testing(string prefixText)
        if (prefixText.Length > 0)
            string sql = "Select * From titles Where title like @title";

            SqlDataAdapter da = new SqlDataAdapter(sql, "Data Source=****; Database=****; uid=****; pwd=****; Persist Security Info=False; Pooling=True;");

Visual Studio 2010 and Autocomplete Extender


The AutoComplete Extender control from the AJAX Control Toolkit does not work. It uses a webservice to retrieve data for the Autocomplete functionality.

The problem seems to be that the event to call the webservice does not fire

I just created a new website in VS 2010 and copied and pasted the AJAX Controltookit Example code for the Autocomplete extender. This works in VS 2008 but not VS 2010

Any ideas? suggestions? Some setting in VS 2010 that has to be tweeked.



Autocomplete display multiple columns


 Hi --

I have an autocomplete extender working great returning one column and I can also retrieve multiple columns just fine from my stored procedure, but here's what I really need to do:

1. Format the data in the autocomplete extender in the following format:

Location Number
City, State, Zip

2. When the user makes a selection I want only the Location Number to populate the textbox.

I've looked quite a bit on this site and others on how to do #2 and I can't seem to find exactly how this should be done. Is there some javascript that needs to be involved in order accomplish this?

If anyone has done this I would really appreciate an example.




MVC + WCF + Ajax tool kit( autocomplete extender)

I need to implement the above combination and am totally lost . Any help , pointers, useful links will be appreciated

Display the list column values along with the search result

Hi All, i created custom Scope (to search on specific list) and i need to display all list columns on my search results.  Say i have 2 columns in the list and i have created a scope to search in only in that list. If i do a search in tat scope i would like to get the list values which fits in the search along with the columns as well. thanks jayaraja

Master Page, web service and Ajax autocomplete extender problem.

 I will appreciate very much any help about this issue.  I have been dealing with it for the last week and I couldn't detail and complete examples about this issue. The problem: I have a text box and ajax autocomplete control extender in my Master Page that it is not working at all.  When I type some characters on the text box it doesn't trigger the autocomplete. I have a web service that contains the function code. I est my code on a single Web Page (No Master Page) and it works perfectly.  Also, it works fine if I include the text box and the extender on the Content Page instead of on the Master Page.  It is important to keep the text box in the Master Page for me. I am using Visual Studio 2008 and ASP 3.5.   tHANK YOU VERY MUCH. here is my code:   MASTER PAGE. <%@ Master Language="VB" AutoEventWireup="true" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajax" %> <%@ Import Namespace = "System.Data" %> <%@ Import Namespace = "System.Data.SQLClient" %> <%@ Import Namespace = "System.Web.Script.Services" %> <%@ Import Namespace="System.Web" %> <%@ Import Namespace="System.Web.Services&

How to display the date only till current date in ajax calendar extender .

Hi,1) How can i display the date only till current date in ajax calendar extender ?2)How to validate the date in one TextBox with the Date in another TextBox ?    Please Help me ...

Autocomplete Extender ??

i would like fetch data from db and bring it on to the text box using auto complete extenderi have 2 column--- Emp_name and Emp_id in db.i want to see the name of employee when i type in the letters but when i select it from the selection of names, i would like emp_code to fill in the textboxany idea??

How to open modelpopup extender at desired location?

I have three button on my web page,after clicking each button a popup is opened. Now i want open this popups just below the button and also stop the scrolling of popup with parent page. i give one example: i just want to create a functionality just like [edit tag]  below in this forums that is when i clicked on [edit tag] one popup is appear at desired location how could i opened my modelpopup  just like ]edit tag] click.thanking you

New location not showing up in Federated result webpart




I made a new Location to federated locations like in http://manish-sharepoint.blogspot.com/2009/12/federated-search-in-sharepoint-2010_21.html, but when I add a federated results webpart to my search page only my standard Locations are showing up. What am I doing wrong?


Thnx Peter

Peter http://www.diva.nl

Textbox and AutoComplete Extender problem


I have a textbox which takes data from autocomplete.

I want to check the textbox text and if the text wasn't taken from autocomplete extender, I want to clear the text.

How can I do this ?


autocomplete extender not working


dear all

i'm trying to make this work for several days but it just doesn't work.

this is my code:

aspx page:

<%@ Page Language="C#" AutoEventWireup="true" Trace="false" ValidateRequest="false" CodeBehind="ajaxform1.aspx.cs" Inherits="ajaxtest1.ajaxform1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!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">
<body style="text-align: center">
    <form id="form1" runat="server">
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="false">
    <asp:ServiceReference Path="~/autocomplete.asmx" />
    <asp:TextBox ID="TextBox1" runat="server" Height="21px" Width="350px">

Browser compatibility Issue while using autocomplete extender in asp


how to set the comaptibility for browsers in an asp.net page

i have used the following code in my master page but its only working for IE not for FF or other browsers.

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Can any one help please

autocomplete extender CSS problem in IE8


I have applied the default CSS in Autocomplete extender but it CSS is broken in IE8.


Can anyone provide me the CSS classes for autocomplete extender that work in all the browsers? 

autocomplete extender with wild cards


hey all

I just started using the ajax control toolkit and i'm trying to use the autocomplete extender with wild cards.

i tried several things but with no luck.

any ideas? 

Ajax autocomplete extender



I want to create a email application in which i want to select multiple email id's in the To textarea.

I an using ajax auto complete extender to fetch the email id's from the database. I am able to display the email id's, but my problem is that i want to select multiple emailid's in one time(Like in real application) How can i achieve that?

Using ajax auto complete extender i am able to  select only one email id. Plz help me with this as soon as possible.....

How can I get Market Basket Analysis result to display on my application?

Dear all,

I would like to know how can I retrieve result from Mining Structure that I created in BI Studio to display on my WPF Project.

My requirement is to show the possible list of new promotion and let manager can view this list.

Is it possible for do something like this?

Thank in advance.

Best Regards,

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend