1
Answer

access the client registry

Photo of grosich

grosich

21y
1.6k
1
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
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.