anji marothu

anji marothu

  • NA
  • 45
  • 50.9k

compare database value with string value

May 30 2013 1:53 AM
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.

Answers (7)