Ajax ASP.Net Tutorial

<%@ Page Language="C#" %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit"
 Assembly="AjaxControlToolkit" %>
<%@ Import Namespace="System.Linq" %>
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    [System.Web.Services.WebMethod]
    public static string[] GetSuggestions(string prefixText, int count)
    {
        MyDatabaseDataContext db = new MyDatabaseDataContext();
        return db.Products
            .Where( m => m.Title.StartsWith(prefixText) )
            .OrderBy( m => m.Title )
            .Select( m => m.Title)
            .Take(count)
            .ToArray();
    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        lblSelectedProductTitle.Text = txtProductTitle.Text;
    }



    AutoComplete Page Method


    
    

    
            id="lblProductTitle"
        Text="Product:"
        AssociatedControlID="txtProductTitle"
        Runat="server" />
            id="txtProductTitle"
        AutoComplete="off"
        Runat="server" />
            id="ace1"
        TargetControlID="txtProductTitle"
        ServiceMethod="GetSuggestions"
        MinimumPrefixLength="1"
        runat="server" />
            id="btnSubmit"
        Text="Submit"
        OnClick="btnSubmit_Click"
        Runat="server" />
    
            id="lblSelectedProductTitle"
        runat="server" />