i have string[] srt={"t","n","m"}
i need to know if the user input contain one of the values in str and print that value
i try this code but its not work with me
string str = Textbox.Text;
string s = "";
string[] a = {"m","t","n"};
if (str.Contains(a.ToString()))
{
s = s + a;
}
else
{
s = s + "there is no match in the string";
}
Label1.Text = s;