AutoCompleteExtender增加滚动条效果

1、首先添加样式  

<style type="text/css">   
    .autocomplete_completionListElement 
 
 margin : 0px!important;
 background-color : inherit;
 color : windowtext;
 border : buttonshadow;
 border-width : 1px;
 border-style : solid;
 cursor : 'default';
 overflow : auto;
 height :auto;
 max-height:200px;
    text-align : left;
    list-style-type : none;
   }
   .autocomplete_listItem
{
  

 border-style : solid;
 border :#EAEFF9;
border-width : 1px;

 background-color : window;
 color : windowtext;

}
.autocomplete_highlightedListItem
{
 background-color: #ffff99;
 color: black;
 padding: 1px;
}
</style>

2、在AutoCompleteExtender控件中添加属性:

CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem"
CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"

原文地址:https://www.cnblogs.com/windphoenix/p/1520732.html