How can i escape this error? I cant seem to use the IF ELSE clause, in my query not all has values so other columns will have "NULL" values. I want to display "NULL" values as "0". How can i do it?
Here is my code
while(readers.Read())
{
b = readers.GetInt32(0);
if (b == 0 || b == null)
{
gvModal.Rows[y].Cells[6].Text = "0";
}
}
is the if statement correct?