E
Earl
What's the best way to check for null on an ExecuteScalar? The following
would fire the command twice:
if (cmd.ExecuteScalar() != null)
{
intContactID = Convert.ToInt32(cmd.ExecuteScalar());
}
would fire the command twice:
if (cmd.ExecuteScalar() != null)
{
intContactID = Convert.ToInt32(cmd.ExecuteScalar());
}