compare database value with string value
hi i was compare database value with string value but not working
here is a code
string value=dr["value"].ToString();
if(value=="valid")
{
// statement
}
else
{
// statement
}
here database value also valid
but the code jump to else part...
need solution.. thank you.