Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 269221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T23:48:09+00:00 2026-05-11T23:48:09+00:00

I was just told that I might have to work on a project where

  • 0

I was just told that I might have to work on a project where i will be working with ASP.NET 3.5 and C#. Someone in our team said that we should change all the pages to HTML when we publish the site. So instead of having http://www.test.com/Page.aspx we will have http://www.test.com/Page.html

So what i would like to know is:

A.) How can this be done and with what tool?

B.) Why should this be done and what can we benefit from it? (Was told to prevent hackers to get it)

C.) Is this recommended?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T23:48:10+00:00Added an answer on May 11, 2026 at 11:48 pm

    A) You do it by changing Web.config:

    <system.web>
        <httpHandlers>
            <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
        </httpHandlers>
    </system.web>
    

    B) The reason would be to prevent viewers from knowing what runtime is behind the site, but in most cases with ASP.NET, it’s easy to recognize from its additions to the HTML (such as view state etc.)

    C) It’s up to you really, I wouldn’t say it’s good or bad.


    In response to your comment below:

    It’s possible that you need to specify a buildHandler as well:

    <?xml version="1.0"?>
    <configuration>
      <system.web>
        <compilation debug="true">
          <buildProviders>
            <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
          </buildProviders>
        </compilation>
        <httpHandlers>
          <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory" />
        </httpHandlers>
      </system.web>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just inherited a project, and been told that an entire folder, includes/ needs
My prof has told me that our final exam will contain a couple questions
I have never programmed in visual basic before and my boss just told me
I work with a small team (4 developers) writing firmware and software for our
I have some PL/SQL code that I think might have a memory leak. Everytime
I have an interrupt handler that just isn't running fast enough for what I
I have an application that I would like to embed inside our companies CMS.
From my other question i learned that asp.net kills my threads because 'it feels
I just picked up an existing web application at work that is supposed to
I just installed django-stdimage with easy_install on my server. It told it me installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.