Securing .htm pages with asp.net

Discussion in 'ASP .Net Security' started by Guy Incognito, Oct 3, 2005.

  1. Hello,

    I would like to use asp.net to secure a site which includes .htm and
    ..html pages.

    I've tried using forms authentication, global.asax and HTTP modules.
    Those approaches work fine for .aspx pages, but they aren't triggered
    when an .htm or .html page is called.

    So how do you secure .htm pages with asp.net security? Can IIS be
    configured so that Global.asax or forms authentication are triggered
    when .htm pages are requested?

    Thanks,
    Jason


    *** Sent via Developersdex http://www.developersdex.com ***
     
    Guy Incognito, Oct 3, 2005
    #1
    1. Advertising

  2. Hello Guy,

    you have to route the .htm extension to the aspnet_isapi dll, just like .aspx
    and friends...

    you do that in IIS application settings.

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > Hello,
    >
    > I would like to use asp.net to secure a site which includes .htm and
    > .html pages.
    >
    > I've tried using forms authentication, global.asax and HTTP modules.
    > Those approaches work fine for .aspx pages, but they aren't triggered
    > when an .htm or .html page is called.
    >
    > So how do you secure .htm pages with asp.net security? Can IIS be
    > configured so that Global.asax or forms authentication are triggered
    > when .htm pages are requested?
    >
    > Thanks,
    > Jason
    > *** Sent via Developersdex http://www.developersdex.com ***
    >
     
    Dominick Baier [DevelopMentor], Oct 3, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tod Birdsall
    Replies:
    2
    Views:
    464
    Juan T. Llibre
    Jan 28, 2005
  2. Vaibhav Shah

    Securing HTML pages using asp.net

    Vaibhav Shah, Sep 26, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    1,962
    George
    Sep 26, 2005
  3. Chris  Ashley

    Application_Error and HTM/ASP pages?

    Chris Ashley, Oct 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    437
    Patrice
    Oct 3, 2005
  4. moondaddy

    Convert htm pages to aspx pages

    moondaddy, Dec 15, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    3,116
    moondaddy
    Dec 15, 2005
  5. Replies:
    6
    Views:
    177
    Dr.Ruud
    Feb 6, 2007
Loading...

Share This Page