G
Guest
Good morning, everyone,
I have a textbox and a radio button and I am trying to run an IF statement
to check on the content of the textbox AND if one of the radio buttons is
checked and everytime I use the && it tells me "Invalid expression term
'&&'". Also, can you tell me what to use to check which property to use to
check which is the selected item in the radio buttons group?
The code I have is
if (txtSearch.Text.Length > 0) && (radSearch.SelectedIndex==0);
Thanks,
Antonio
I have a textbox and a radio button and I am trying to run an IF statement
to check on the content of the textbox AND if one of the radio buttons is
checked and everytime I use the && it tells me "Invalid expression term
'&&'". Also, can you tell me what to use to check which property to use to
check which is the selected item in the radio buttons group?
The code I have is
if (txtSearch.Text.Length > 0) && (radSearch.SelectedIndex==0);
Thanks,
Antonio