concept file extension in category asp.net

appears as: file extension, The file extension, File extensions
ASP.NET MVC in Action with MvcContrib, NHibernate, and More

This is an excerpt from Manning's book ASP.NET MVC in Action with MvcContrib, NHibernate, and More.

The key thing here is that the file extension of .html is probably redundant in this context, as the content type is being specified by the Content-Type header returned as part of the HTTP response. An example HTTP header is shown in listing 5.1.

File extensions are not all bad!

Reading this chapter so far, you might think that all file extensions are bad, but this is not the case. Knowing when information would be useful to the user is key to understanding when to use a file extension. Is it useful for the user to know that HTML has been generated from an .aspx source file? No, the MIME type is sufficient to influence how that content is displayed, so no extension should be shown. However, if a Word document is being served it would be good practice to include a .doc extension in addition to setting the correct MIME type, as that will be useful when the file is downloaded to the user’s PC.