7
Reply

compare database value with string value

anji marothu

anji marothu

May 30 2013 1:53 AM
1.5k
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)