shangrilla
Programmer
name is a char field stored as null in the database. I send name to the following function, but It never returns true.
static private bool checkSpaces(char name)
{
bool val=false;
try
{
if (name.Equals("" || name.Equals(null) || Convert.IsDBNull(name))
val =true;
}
catch
{val= false;}
return val;
}
static private bool checkSpaces(char name)
{
bool val=false;
try
{
if (name.Equals("" || name.Equals(null) || Convert.IsDBNull(name))
val =true;
}
catch
{val= false;}
return val;
}