.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 not working

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

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

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

MaterPage Ajax calendar extender not working


AJAX with MasterPage not working.

Setup simple test site below, no error just not working. TIA

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ajaxDev.WebForm1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
    Enabled="True" TargetCo

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.



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

Auto Complete Extender Not Working

I have written everything in that Control but that extender is not working. my Webservice is working properly Plz tell me solution.  

Calendar Extender is not working in IE7 after Postback

We have implemented ajaxtoolkit version: 3.5.40412.0, and my web application is not AJAX enabled. We have included ajaxtoolkit binary reference in our web application. In one of the page, calendar extendar is working fine when it rendar first, after postback it's not working at all in IE7, but it's working fine in Mozilla. The sample code is as below, [ We are not getting any javascript or HTML tag error ]   <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %><asp:Content ID="MyTest" ContentPlaceHolderID="MainContentPlaceHolder" runat="server"><ajaxToolkit:ToolkitScriptManager id="ScriptManager1" runat="server"/><table><td><asp:TextBox ID="txtDate" TabIndex="8" runat="server" Width="144px"></asp:TextBox><ajaxToolkit:CalendarExtender ID="calDate" Format="MM/dd/yyyy" runat="server" TargetControlID="txtDate" PopupPosition="BottomRight" /><asp:RangeValidator ID="DateRangeValidator" runat="server" Display="None" EnableClientScript="false" ControlToValidate="txtDate" ErrorMessage="Selected date is not within range." Type="Date" /><

Hover extender not working after postback

Hi I bind a hover extender to a cell in a gridview, using following code: Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then  Dim hoverMenu As HoverMenuExtender = CType(e.Row.FindControl("hoverMenu"), HoverMenuExtender)  e.Row.Cells(1).Controls.Item(0).ID = e.Row.RowIndex.ToString()     hoverMenu.TargetControlID = e.Row.Cells(1).Controls.Item(0).ID End If End Sub Now This works perfectly and the panel appear when hovering over the second cell.However after a postback it is no longer working and no panel will show when hovering over the cell. Can anybody help plaese?   Jonas   

Calendar Extender Not working

Ok, I have done this before but for the life of me I can not figure out why this is not working. I am trying to use a calendar extender on a field in Formview Insert. The page will load fine but no calendar. Advise? Thank You <%@ Page Language="VB" MasterPageFile="~/buildingpermit.master" AutoEventWireup="false" CodeFile="request_inspection.aspx.vb" Inherits="request_inspection" title="Untitled Page" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style13 { width: 100%; } .style14 { background-color: #003300; } .style15 { width: 196px; color: #FFFFCC; background-color: #003300; } .style16 { color: #FFFFCC; } .style17 { text-align: left; color: #FFFFCC; background-color: #003300; } </style> </asp:Content> <asp:

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&

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??

Ajax AutoComplete is not working when Cookieless is true


Hi All,

I have a web page that using AutoComplete Asp.net Ajax Control.

It was working find when the Cookieless is not "True".

I have no idea my it is not working when I set cookieless to "true".



AutoComplete extender result display location



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?

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 ?


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

v3.5 Ajax ToolkitScriptManager Extender Control not working in Nested Master Pages


I am using v3.0.31106.0 of the AjaxControlTookkit.dlll.  I have nested master pages.

The site Master page has the only ScriptManager & holds the oneColumn & twoColumn master pages.
The twoColumn master page holds content pages. In the content page there is a update panel.

Here is my Site Master Page:

<%@ Master Language="VB" CodeFile="SiteMasterPage.master.vb" Inherits="SiteMasterPage" %>

<!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">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <div><h2>Main Master Page</h2>
        <br /></div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

Here is the Nested Master Page:

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? 

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