G
Guest
I'm working in ASP.NET 2.0 and am having problems with some client side
script on my .aspx pages.
The script looks like this:
<script language=vbscript>
function OpenFile(FileToOpen)
Set oShell = CreateObject("WScript.Shell")
oShell.Run("explorer " & FileToOpen)
end function
</script>
The idea was to use explorer to open these files. The problem I'm having
though is on the line:
Set oShell = CreateObject("WScript.Shell")
I keep getting the message ActiveX component can't create object:
'WScript.Shell'
I'm totally confused because this exact same code runs fine if I write it in
a .htm file.
Why does my browser treat my .aspx page differently than the .htm file?
Thanks,
script on my .aspx pages.
The script looks like this:
<script language=vbscript>
function OpenFile(FileToOpen)
Set oShell = CreateObject("WScript.Shell")
oShell.Run("explorer " & FileToOpen)
end function
</script>
The idea was to use explorer to open these files. The problem I'm having
though is on the line:
Set oShell = CreateObject("WScript.Shell")
I keep getting the message ActiveX component can't create object:
'WScript.Shell'
I'm totally confused because this exact same code runs fine if I write it in
a .htm file.
Why does my browser treat my .aspx page differently than the .htm file?
Thanks,