public contentresult Name(string name,string pwd)
{
string msg=string.Empty;
if(name=="sankeerth" && pwd="sank")
{
msg="sucess"
}
else
{
msg="Faliure"
}
} when i'm trying this it is directly going to else block.plz help me thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dharmraj ThakurRank #577 · 4.2K reputationPosted Dec 13, 2017, 6:54 PM EST
MelbinRank #6,715 · 258 reputationPosted Dec 13, 2017, 8:07 AM EST
Bryian TanRank #396 · 6.3K reputationPosted Dec 9, 2017, 9:58 PM EST
Bryian TanRank #396 · 6.3K reputationPosted Dec 13, 2017, 3:36 PM EST
sankeerth mRank #3,390 · 425 reputationPosted Dec 15, 2017, 6:25 AM EST
MelbinRank #6,715 · 258 reputationPosted Dec 18, 2017, 4:15 AM EST
{
if (name.ToLower().Equals("sankeerth") && pwd.ToLower().Equals("sank"))
{
msg = "sucess"
}
else
{
msg = "Faliure"
}
}