<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true"
ontextchanged="TextBox1_TextChanged"></asp:TextBox>
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
string[] ArrayW = new string[] { "apple", "kee", "pubp" };
foreach(string i in ArrayW.ToString().StartsWith(TextBox1.Text)
{
System.Console.WriteLine(i);
}
}
Go to the complete details ...