+ Reply to Thread
Results 1 to 8 of 8

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
    20
    Rep Power
    4

    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
    Reston, VA
    Posts
    4,533
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    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 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
    20
    Rep Power
    4

    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
    Reston, VA
    Posts
    4,533
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    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 you like it here...throw us a few bones to help support us.


  5. #5
    Barn Newbie Jananeekar is an unknown quantity at this point Jananeekar's Avatar
    Join Date
    May 2011
    Posts
    2
    Rep Power
    1

    Hi mellome70,

    Can u please explain of how it can be done about
    "Running hta indenpendently from the Asp.net app, instead of invoking it from iside the app"
    Awaiting for ur reply.

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

    HTA Suppressing Run or Save message

    Create a project with just the HTA - no asp page, build it and run it. Hope this makes sense

  7. #7
    Barn Newbie Jananeekar is an unknown quantity at this point Jananeekar's Avatar
    Join Date
    May 2011
    Posts
    2
    Rep Power
    1

    Suppressing Run or Save message

    Thanks for your reply melome,

    Actually what I wanna do is, try to invoke an exe assume a notepad from one of my Aspx page and for this requirement Im trying to achieve it using hta in my webapplication, and it works fine.... but at a glance the browser throws a Run or Save dialog and I would want to suppress it or if there is any other way, please suggest me so that I can go with it.....

    thank you.

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

    Sorry - I never did figure out how to surpress that message from within an ASPX page. Maybe someone else on the forum can help?

+ 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