Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. IIS treating .html pages as .aspx pages

IIS treating .html pages as .aspx pages

Scheduled Pinned Locked Moved ASP.NET
questionhtmlwindows-adminhelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    laziale
    wrote on last edited by
    #1

    Hello everyone - I don't know if this is the right place to ask the question, but here is the thing. I want IIS to treat the .html pages as .aspx pages, so I can reduce the size of the pages. How I can do that, any advices? Thanks for your help, Laziale

    A K A 3 Replies Last reply
    0
    • L laziale

      Hello everyone - I don't know if this is the right place to ask the question, but here is the thing. I want IIS to treat the .html pages as .aspx pages, so I can reduce the size of the pages. How I can do that, any advices? Thanks for your help, Laziale

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      laziale wrote:

      I want IIS to treat the .html pages as .aspx pages, so I can reduce the size of the pages.

      :omg: I am not able to understand what you are looking for :confused:. Can you please be more clear ? Thanks !

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET

      1 Reply Last reply
      0
      • L laziale

        Hello everyone - I don't know if this is the right place to ask the question, but here is the thing. I want IIS to treat the .html pages as .aspx pages, so I can reduce the size of the pages. How I can do that, any advices? Thanks for your help, Laziale

        K Offline
        K Offline
        Kannan Ar
        wrote on last edited by
        #3

        How can you reduce page size in that way? Better is to use gzip compression. If you want to display html pages as aspx pages in browser, use url rewriting.

        1 Reply Last reply
        0
        • L laziale

          Hello everyone - I don't know if this is the right place to ask the question, but here is the thing. I want IIS to treat the .html pages as .aspx pages, so I can reduce the size of the pages. How I can do that, any advices? Thanks for your help, Laziale

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          I never tried it with HTMLs but Check by following the process below : Go to IIS console, Right click on Website, - > Go to properties. Move to Tab Page : Home Directory Click on Configuration. In the Mappings Tab click on "Add". In Executable Choose "aspnet_isapi.dll". (You will find this in DefaultDrive:\windows\Microsoft\Framework\2.0) In the Extension type "html" Now click OK. In your webconfig of your website, create an entry for HTTPHandler which handles HTML extension. You can use this article to remove extra whitespaces and apply GZip Compression to your html. http://www.codeproject.com/Articles/38067/Compress-Response-and-HTML-WhiteSpace-Remover.aspx[^] Just write the response back to the stream. If HTML extension doesnt work for you, try using any other extensions for your html files, preferably axd. :) Hope this solution help you. :rose:

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups