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