access the client registry
Hi, in javascript I'm using WScript.Shell, but the line var ws = new ActiveXObject("WScript.Shell"); cause a warning message asking to accept or not the ActiveX interaction. Is there a way to avoid this message?
Thanx in advance,
Guillermo
Answers (1)
1
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
Thanks Vulpes, that was bang on, I've been going round in circles with that one.