0
Answer

AutocompleteExtender in Multiline Textbox with new line as delimiter character

eliza sahoo

eliza sahoo

14y
6.8k
1
In .aspx Page
 
<asp:TextBox ID="txtDemo" runat="server" TextMode="MultiLine" ></asp:TextBox>
 
<cc1:AutoCompleteExtender ID="txtDemo_AutoCompleteExtender" runat="server"
                             TargetControlID="txtDemo" Enabled="True
                             EnableCaching="true" MinimumPrefixLength="3"  
                             FirstRowSelected="True"  ServiceMethod = "GetEmployeeName"    
                             ServicePath = "EmployeeName.asmx">
</cc1:AutoCompleteExtender>
In code behind
 
protected void Page_Load(object sender, EventArgs e)
{    
  txtDemo_AutoCompleteExtender.DelimiterCharacters = "\r\n";
}