自动补全+汉字拼音双查(5)---搜索功能

AjaxSearch.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AjaxSearch.aspx.cs" Inherits="AjaxSearch" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<!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">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:TextBox ID="SearchKey" runat="server"></asp:TextBox>
            <ajax:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server"
            TargetControlID="SearchKey"
             ServiceMethod="GetKey"
             ServicePath="AutoCompleteService.asmx"
             Enabled="true"
             MinimumPrefixLength="1"
             CompletionSetCount="10"
            >
            </ajax:AutoCompleteExtender>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

不做后台处理

posted @ 2013-06-13 09:18  梦醒心晴  Views(247)  Comments(0Edit  收藏  举报