hi

I am using auto complete extender and it is not working in Web user Control . But Working in Web form Please give its solution ASAP.

Cs Code

[System.Web.Services.WebMethod]
    public static string[] GetSuggestions(string prefixText, int count)
    {
        MyDatabaseDataContext db = new MyDatabaseDataContext();
        return db.Movies
            .Where( m => m.Title.StartsWith(prefixText) )
            .OrderBy( m => m.Title )
            .Select( m => m.Title)
            .Take(count)
            .ToArray();
    }


<asp:TextBox  id="txtMovieTitle"  AutoComplete="off"  Runat="server" />
    <ajax:AutoCompleteExtender   id="ace1"
        TargetControlID="txtMovieTitle"
        ServiceMethod="GetSuggestions"
        MinimumPrefixLength="1"
        runat="server" />

Thanx