Hi All,
I have the following if statement:
if ((e.Row.RowType = DataControlRowType.DataRow) &&
(e.Row.Cells[1].Text.ToLower() = "jake"))
{
e.Row.Cells[1].Text += "ALERT!!!";
}
I am getting the following compilation error on the first line shown
above:
CS0131: The left-hand side of an assignment must be a variable,
property or indexer
Can anyone help? I've tried a single ampersand, which gives me the
same error.
Basically, I am trying to say:
if ((this evaluates to true) AND (this evaluates to true)) Then
DO THIS
end if
Any help/advice will be much appreciated.
Thank you.