ASP.NET ajaxToolkit AutoCompleteExtender美化样式

示例源码下载    其他示例下载


<style type="text/css">
    /*AutoComplete flyout */
    .autocomplete_completionListElement {
        visibility: hidden;
        margin: 0px !important;
        background-color: inherit;
        color: windowtext;
        border: buttonshadow;
        border-width: 1px;
        border-style: solid;
        cursor: pointer;
        overflow: auto;
        text-align: left;
        list-style-type: none;
        font-family: Verdana;
        font-size: 13px;
        padding: 0;
    }

    /* AutoComplete item */
    .autocomplete_listItem {
        background-color: white;
        padding: 1px;
    }

    /* AutoComplete highlighted item */
    .autocomplete_highlightedListItem {
        background-color: #e9f5f7;
        padding: 1px;
    }
</style>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:TextBox ID="txtSearch" runat="server" οnkeydοwn="SetContextKey();"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender ID="autoComplete" runat="server" TargetControlID="txtSearch"
    ServicePath="~/AjaxService/webservice.asmx"
    ServiceMethod="GetAutoCompleteExtenderData"
    MinimumPrefixLength="1"
    CompletionInterval="200"
    CompletionSetCount="10"
    FirstRowSelected="true"
    EnableCaching="false"
    UseContextKey="true"
    OnClientItemSelected="ajaxCompleteCallBack"
    CompletionListCssClass="autocomplete_completionListElement"
    CompletionListItemCssClass="autocomplete_listItem"
    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem">
</ajaxToolkit:AutoCompleteExtender>
<div id="AjaxCompleteSelectedValue"></div>




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值