This is a discussion on Suppressing Run or Save message within the Windows Scripting forums, part of the Programming & Scripting category; Hi - I've written an hta script (using vbscript) to detect if a user is accessing a website directly from ...
| |||||||
|
#1
| |||
| |||
| 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! |
|
#2
| ||||
| ||||
| Welcome to DeveloperBarn! Take a look at this link here: Introduction to HTML Applications (HTAs) Pay close attention to the sections: The Power of Trust: HTAs and Security The Web Model
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
| The Following User Says Thank You to jmurrayhead For This Useful Post: | ||
mellomel70 (November 3rd, 2008) | ||
|
#3
| |||
| |||
| Yup, that link had the information I needed. I'm now running my hta independently from the ASP.Net app, instead of invoking it from inside the app, and it works wonderfully. Thank you!! |
|
#4
| ||||
| ||||
| Quote:
Glad I could help, cheers! |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What format should i use to save password? | micky | MySQL | 20 | November 4th, 2008 08:56 AM |