1
Answer

Code for Password REcovery ?

Photo of hitesh oberoi

hitesh oberoi

16y
9.3k
1
We create our login Id but unfortunately we forget our password. Than what is the code for retrieving the password in C# language. 

Answers (1)

1
Photo of Vulpes
NA 98.3k 1.5m 13y
You can check for a string being either null or empty with:

if (String.IsNullOrEmpty(strResult))
{                
   label1.Text = "INCORRECT USER/PASS!";
}
else
{              
   label1.Text = "YOU ARE LOGGED IN!";
}
Accepted
0
Photo of mike Delvotti
NA 287 0 13y
Thanks Vulpes, that was bang on, I've been going round in circles with that one.