.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 no firing...

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :ASP.Net


I'm trying to get AutoComplete working in a projecto of mine but i can't get it to work :(

Here's my .aspx:

<label>Nome:</label><asp:TextBox ID="nomeTextBox" Width="325px" MaxLength="30" runat="server"></asp:TextBox>
 <asp:AutoCompleteExtender ID="nomeAutoComplete" TargetControlID="nomeTextBox"

And here's my service method:

    public string[] GetNomes(string prefixText, int count)
        count =

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;");

jquery autocomplete not firing




iam using jquery auto complete for ,but its not firing handlerold.ashx file,

pls give valuable suggestions

script type="text/javascript">
//      $(document).ready(function()
//      {
        $("#<%=txtguages.ClientID%>").autocomplete('Handlerold.ashx',{minChars:1,extraParams:{"param1":"1"}}).result(function (event, data, formatted) {
        if (data) {
            alert('Value: '+ data[1]);
            $("#<%= Hdnguages.ClientID %>").val(data[1]);
        else {
            $("#<%= Hdnguages.ClientID %>").val('-1');

handlerold.ashx code below

<%@ WebHandler Language="C#" %>

using System;
using System.Web;
using vdatalayer;
using System.Data.SqlClient;
using S

jquery autocomplete multiple values


i got some samples and i did autocomplete using jquery , its working well for single input values

but i need to pass multiples values after one by one in the textbox. Is it possible to pass multiple

values in the textbox for autocomplete in jquery in asp.net?


build repository from SQL 2005? for a Linq, Jquery autocomplete



  I have the a question am going about his correctly I have a database for categories, it has many fields and about 4000 records,  but with a Jquery autocomplete needing speed and the fact that I only need to return a key and category name. I did the following:  (oh just to note, MVC2, Ajax project)


    public class categorySearch
        public Guid Category_GUID { get; set; }
        public string Category_Name { get; set; }


and now for the repository

    public class categoryRepository
        internal List<categorySearch> FindCategory(string searchText, int maxResults)
            List<categorySearch> category = new List<categorySearch>();
            dbWebEntities storedb = new dbWebEntities(); 

            var getcat = storedb.Categories.ToList();

            foreach (var item in getcat)
                category.Add(new categorySearch { Category_GUID = item.Cat_GUID, Category_Name = item.Category_Name});

            var result = from c in category
                         where c.Category_Name.Contains(searchText)
                         orderby c.Category_Name

OnItemCommand not firing in Templated User Control


I have a templated user control with single instance template attribute. It works great for everything except the following scenario:


    <asp:UpdatePanel ID="upDirectoryBrowser" runat="server">
        <asp:AsyncPostBackTrigger ControlID="fsBrowser" EventName="FolderSelected" />
        <asp:AsyncPostBackTrigger ControlID="flsBrowser" EventName="FileSelected" />
        <asp:AsyncPostBackTrigger ControlID="flsBrowser" EventName="LinkSelected" />
        <table width="100%">
                <td style="width: 230px;">                        
                    <ntc:FolderSelector ID="fsBrowser" runat="server" OnFolderSelected="fsBrowser_FolderSelected"
                    OnControlException="fsBrowser_ControlException"  /> 
                    <ntc:FileSelector ID="flsBrowser" runat="server" OnFileSelected="flsBrowser_FileSelected"
                    OnControlException="fsBrowser_ControlException" O

Autocomplete with multiple word suggestions, How can we do in Asp.Net with Ajax?


Hi All,

Could you please let me know the process to get multiple word suggesions for a text box in asp.net using Ajax.  

Actually I got a solution for that,


But it used Atlas. When I am running with this code in my application, it is conflicting with Script Manager that is already there in Masterpage.

How can I overcome that problem. Is there any built-in solution in latest versions of Ajax?


Thanks in Advance,

Sateesh Nagalla,



jquery autocomplete selected value



Iam using jquery autocomplete to search data and i have button to get the detail value of employee and

display in label , what i need is that , i don't want to put button to get detail , instead i need to select the from\

auto search and press enter key  and show the detail in the lablel example(empname,address, emailid).

Looking forward valuable suggestions

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 using Page Method HELP!



My site has 2 web service, one connects to the database, the second one calling the data from the first web service. I try to make a web application with AutoComplete Extender using Page Method from existing search.

This is the search code:

Imports App.svcNewApp

Imports System.Web.Services

Partial Public Class AppSearch

    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim aService As NewApp = New NewApp()

        Dim aDataSet As DataSet = Nothing

        Dim cityZip As String = Request.Form("cityZip")

        Dim city As String = ""

        Dim aTable As DataTable

        Dim aRow As DataRow

        If (cityZip <> Nothing) Then

            Dim n As Integer



Autocomplete Colors



I have a question about the colors of the text in the drop down list of Autocomplete box. I'm trying to categorize them into 2 differents colors. For example, the autocomplete box will display the list of soft drink in the store and the color will identify them as "sold out" or "available".

The data in my database is seperated into 2 columns. The first one is the names of the soft drink, and the second columns identify them as "sold out" or "available.

The autocomplete box was implemented in my website using page method. There is a function in the code behind page, calling data from the web services.

Please let me know if there is any suggestion, guideline or any reference link to the answer of my problems.

Thank you.

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.




Ajax AutoComplete VB Code HELP!


hey guysim new to the site so bare with me. Im not sure if this has been asked before and sorry if it has.

ive been trying to figure out some code for autocomplete and everything I seem to do comes up blank.

my DataBase is called ReviewDB

the table I want to access is called Game

the Colum Name I want to retrevie is GameTitle

Dataset is call ReviewDataSet

ConnectionString is Called ReviewDBConnectionString

Webservice is called AutoComp.asmx

Im trying to get a search TextBox to Autocomplete a list of GameTitles From my DataBase. that onced send will postback to my viewGames.aspx page to display the information about that game.

Im not sure if this is even the best way todo it if you guys have better suggestions on how to search and retrive my games from the database then all ideas welcome.

thanks dave

Firing postback from Repeater row click.


Hi all,

I have a repeater which contains a hidden link button that fires when I click a row in my repeater.

Here is the markup for my repeater:

<div id="divResults" style="height: 290px; overflow-y: auto;">
<asp:Label ID="lblNote" runat="server" Text="Note: select a row to edit."></asp:Label>
<asp:Repeater ID="rptLocations" runat="server" onitemdatabound="rptLocations_ItemDataBound">
    <table width="100%" cellspacing="1" cellpadding="3">
     <th style="width:30%;">SEAT</th>
     <th style="width:65%;">Establishment</th>
     <th style="width:5%;"></th>
 <tr id="trResults" runat="server">
  <asp:LinkButton ID="lbtn_SelectRow" runat="server" OnClick="SetLocationControls"/>    <-----me

Class member autocomplete


Is there in C# such feature as in VB when you create some class which inherits some interface and after clicking Enter after line Inherits SomeInterfaceHere all properties and functions which you need to inherit appear?

Combobox SelectionChanged: Prevent firing for every keystroke?

Is it possible for this event to fire only when the user clicks an item from combobox with the mouse or when they hit enter on it like the old 2.0 combobox worked? I have tried messing aroudn with the new selectionchanged event but I cannot figure it out. I looked on the forums here for help but only found someone returning the even to fire only when items they type are in the combobox. Thanks all help appreciated.GINtech Systems Owner

MouseUp event not firing on ActivityDesigner class?

I have a custom control derived from ActivityDesigner.  I'm basically retemplating the contol to give it a stylized look and feel ... I want to add the ability to change the Display Name by swapping out the TextBlock with a TextBox on MouseUP - but this event is not firing. I can handle the MouseDown event and it works OK, except it enters the Edit mode when dragging the activity around.  Is the MouseUp handled at the base level?  Is there a way to work around this? 
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