+ Reply to Thread
Results 1 to 4 of 4

Thread: Suppressing Run or Save message

  1. #1
    Barn Newbie mellomel70 is an unknown quantity at this point mellomel70's Avatar
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    2

    Suppressing Run or Save message

    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. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    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, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  3. #3
    Barn Newbie mellomel70 is an unknown quantity at this point mellomel70's Avatar
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    2

    Thank you!

    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. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    Quote Originally Posted by mellomel70 View Post
    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!!

    Glad I could help, cheers!
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread

Similar Threads

  1. Replies: 20
    Last Post: November 4th, 2008, 08:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO