« Previous Next »

Thread: Managed modulde invoked on ASP pages?

Last post 10-27-2009 8:58 PM by cjb3bhl. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-23-2009, 1:53 PM

    • cjb3bhl
    • Not Ranked
    • Joined on 09-11-2009, 4:28 PM
    • Posts 6

    Managed modulde invoked on ASP pages?

    On IIS7, a managed module can be invoked when both an ASP.NET and regular ASP page is loaded.  Can a managed module in IIS6 be invoked by loading an ASP page?  If not, is there some kind of module that can be invoked by loading the ASP pages?

  • 10-26-2009, 7:01 AM In reply to

    • Sansom
    • Top 500 Contributor
    • Joined on 11-14-2006, 3:57 AM
    • Bangalore
    • Posts 22

    Re: Managed modulde invoked on ASP pages?

    The simplest way I can do it is to have .htm map to the aspnet_isapi.dll in the IIS configuration and have an include tag at the start of the .asp page to point to .htm page which can be header.htm or banner.htm.

    Cheers,
    Santhosh

    visit my blogs at
    http://blogs.msdn.com/sansom
  • 10-27-2009, 8:50 AM In reply to

    • cjb3bhl
    • Not Ranked
    • Joined on 09-11-2009, 4:28 PM
    • Posts 6

    Re: Managed modulde invoked on ASP pages?

    I don't have access to the ASP pages to modify them.  Any solution must work for the ASP pages as is.  Thanks.

     Is there anyway to map the ASP pages to aspnet_filter.dll so the ASP.NET pipeline handles them?  What I'm trying to do is grab the authenticated username and remote IP address from the pipeline.  For ASP.NET, I used a managed module which calls me with the authentication information at the post authentication event.  Is there some other way to get this information in IIS 6 for regular ASP pages?

  • 10-27-2009, 10:45 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,235

    Re: Managed modulde invoked on ASP pages?

    Use IIS 6 wildcard mapping to have ASP go through the ASP.NET pipeline.

    http://weblogs.asp.net/scottgu/archive/2007/03/04/tip-trick-integrating-asp-net-security-with-classic-asp-and-non-asp-net-urls.aspx

    You can then write an ASP.NET httpModule that will sit in the request and do what you need.

  • 10-27-2009, 8:58 PM In reply to

    • cjb3bhl
    • Not Ranked
    • Joined on 09-11-2009, 4:28 PM
    • Posts 6

    Re: Managed modulde invoked on ASP pages?

    Works well, thanks!

Page 1 of 1 (5 items)
Microsoft Communities