.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 CSS problem in IE8

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

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? 

View Complete Post

More Related Resource Links

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&

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



Problem with Ajax calendar extender visibility

sir i am using ajax calender extender in textbox below this textbox i am using a panel there is a gridview that show data.problem is when i click the textbox half of the calender id hiden behind the panel how to solve this problem. 

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

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

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?

Problem in Autocomplete


I'm creating just simple autocomplete sample.

taking one textbox adding autocomplete extender as

<asp:ScriptManager ID="ScriptManager2" runat="server">
    <asp:ServiceReference Path="WebService.asmx" />
        <asp:TextBox ID="TextBox1" runat="server"  EnableTheming="True" ></asp:TextBox>
        <cc1:AutoCompleteExtender ID="AutoCompleteExtender1"  runat="server" MinimumPrefixLength="1" ServiceMethod="GetCountryInfo" ServicePath="WebService.asmx" TargetControlID="TextBox1">
        <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />

Also creating web services as  "WebService.asmx" & code inside this file is that

<%@ WebService Language="C#" CodeBehind="~/App_Code/

Problem with multiple extender


Hi there,


I'm having a problem with using multiple extenders acting on a single object. Basically, what I'm wanting to do is use the Modal Popup Extender AND the RoundedCornersExtender, both acting on the same panel. When I press on the button, the background "grays out", but the popup doesn't come up.



<form id="form1" runat="server">

<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">


<asp:Button ID="button1" runat="server" Text="Click me" />


<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"

CancelControlID="btnCancel" OkControlID="btnOkay" TargetControlID="button1"

PopupControlID="Panel1" PopupDragHandleControlID="PopupHeader" Drag="True"




<asp:Panel ID="Panel1" runat="server" style="display:none"

Height="200px" Width="300px">

<div class = "popup_Container">

<div class = &qu

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

hi problem with grid paging when grid is placed in ajax model popup extender


hi i had one ajax tab containeer.in that i placed a grid on click of the grid i am showing another grid which has pagination in a popup. the popup grid has the pagination(custom) which iam showing prev and next button in middle drop downlist the code is as fllows


<asp:ImageButton ID="imgbtnOPrev" runat="server" CommandArgument="prev" CommandName="Page"

 ImageUrl="~/Images/prev.gif" OnCommand="imgbtnOPre

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

ajax calendar extender problem


I have a problem with Ajax calendar extender (version 3.5).
What i do is post from a form to the specific form and i have a textbox an image
and the cal extender.
When the page i post to is loading i get an error on

Sys.Application.add_init(function() {
    $create(Sys.Extended.UI.CalendarBehavior, {"button":$get("Image1"),"id":"CalendarExtender1"}, null, null, $get("YearsTextBox"));

The error is
Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object

Here is my markup:
<asp:TextBox ID="YearsTextBox" runat="server" ReadOnly="true"
            style="z-index: 1; left: 167px; top: 113px; position: absolute"></asp:TextBox><asp:Image ID="Image1" runat="server" ImageUrl="images/calendar17189.GIF" height="16" width="16"
             style="z-index: 1; left: 330px; top: 113px; position: absolute" />
        <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="YearsTextBox" PopupButtonID="Image1">

Now the image picture is showing

How to pass 2 parameters to the autoComplete Extender



help please, I'm really stuck!!


I'm trying to pass a static value (from a list box) into an Autocomplete Extender.   I've had Autocomplete working with just the prefixText but can not get it to work when passing an extra parameter through the contextKey.


Please see below:


On Page Load:

 AutoCompleteExtender1.ContextKey = lstUserID.SelectedValue


(the 'lstUserID' holds the ID of the group logged in)


the autoComplete Extender:



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