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\")
In the if statement replace = by ==.
=
==
You're using the assignment operator instead of the equals comparison.
The syntax for the if statement is also not correct. Check if-else (C# Reference).