
October 31st, 2008, 12:12 PM
|
|
Registered User
|
|
Join Date: Oct 2008
Posts: 1
Time spent in forums: 12 m 18 sec
Reputation Power: 0
|
|
WMI - How to suppress the "Run or Save" message w/HTA within ASP.Net
Hi - I've written an hta script (using vbscript) to detect if a user is accessing a website directly from their PC or via a remote connection. This HTA file is set as the startup page in an ASP.net (1.1) application. Its intention is to keep remote users from accessing the website. It works beautifully, except that everytime I go to the site it displays the ol' "Do you want to run or save this file?" message. If I click "Run", the hta runs fine and then I'm taken to the website (if I'm not connecting remotely). However, I want to suppress this "Run or Save" message. I've tried all sorts of setting changes in IE, but no joy. IE7 is the version we use, but the behavior is the same with 6. Does anyone know how to suppress this?
Thanks!
|