7
Answers

compare database value with string value

anji marothu

anji marothu

11y
1.5k
1
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)