I am checking for values in a textbox to trigger a conditional statement, but am getting error messages.
if (txtAge.Text = \"49\") || (txtAge.Text = \"59\")
Need to use == instead of =. Former is used for comparison while the later is for assignment.
==
=
comparison
assignment
A better way is to use Equals method
Equals
if (txtAge.Text.Equals("49") || txtAge.Text.Equals("59")) { }