*.aspx -> *.html

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aurimas Norkevicius

    *.aspx -> *.html

    I need to rename asp.net application filenames to have *.html file name
    extensions not *.aspx.
    It is easy to do.
    Bu how to configure Visual Studio .NET 2003 to process *.html files the same
    as it does with *.aspx

    Thanx
    Aurimas Norkevicius


  • BillyDunny

    #2
    re:*.aspx -> *.html

    Why would you do that? I'm not sure if you can, but if it is
    possible, it'd be configuration change in IIS so that .HTML requests
    get processed with the ASP.NET dll (aspnet_isapi.d ll).


    Posted Via Usenet.com Premium Usenet Newsgroup Services
    ----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
    ----------------------------------------------------------
    Best Usenet Service Providers 2025 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

    Comment

    • Ignacio Machin \( .NET/ C#  MVP \)

      #3
      Re: *.aspx -> *.html

      Hi,

      Weird request :)
      Please note that for an expert eye it will be very clear that the page IS a
      aspx generated file, all you have to do is look into the code.

      You can configure IIS to have the asp.net isapi handle the html and it
      should not complain about the extension, also note that I have never try
      this.

      A possible drawback is that "normal" html page will take longer to be
      served.

      I don;t know if you can configure the IDE to do that, what you can do is
      have your development machine with the "normal" settings and when you are
      ready to export to the production machine make the conversion.


      Cheers,

      --
      Ignacio Machin,
      ignacio.machin AT dot.state.fl.us
      Florida Department Of Transportation

      "Aurimas Norkevicius" <aurimas_norkev icius@studentas .lt> wrote in message
      news:%23LG%2301 aXEHA.2940@TK2M SFTNGP09.phx.gb l...[color=blue]
      > I need to rename asp.net application filenames to have *.html file name
      > extensions not *.aspx.
      > It is easy to do.
      > Bu how to configure Visual Studio .NET 2003 to process *.html files the[/color]
      same[color=blue]
      > as it does with *.aspx
      >
      > Thanx
      > Aurimas Norkevicius
      >
      >[/color]


      Comment

      • Daniel Jin

        #4
        RE: *.aspx -&gt; *.html

        to do that, first you need to go to the IIS properties of the web app, in configuration, add a new extension .html and map it to executable path %frameworkRoot% \aspnet_isapi.d ll. then in your web.config, you need to add a httphandler section, and add the entry <add verb="*" path="*.html" type="System.We b.UI.PageHandle rFactory"/> that should do it.

        don't think you can get VS.NET to treat .html like.aspx though. not sure.

        "Aurimas Norkevicius" wrote:
        [color=blue]
        > I need to rename asp.net application filenames to have *.html file name
        > extensions not *.aspx.
        > It is easy to do.
        > Bu how to configure Visual Studio .NET 2003 to process *.html files the same
        > as it does with *.aspx
        >
        > Thanx
        > Aurimas Norkevicius
        >
        >
        >[/color]

        Comment

        Working...