eliza sahoo

eliza sahoo

  • NA
  • 41
  • 0

AutocompleteExtender in Multiline Textbox with new line as delimiter character

Feb 10 2010 6:17 AM
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";
}