473,388 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to incorporate html files in asp.net site?

I have an IIS 6.0 web server hosting an ASP.NET 2.0 web site. Help files for
the site are pure html. Is there some way to serve these html pages using
the same ASP.NET web site? If so, how do I include them in my ASP.NET
project?

Thanks,

Keith
Jul 13 '06 #1
3 1582
If you want the html files to be handled by the ASP.NET engine,
you have to add the .html file type in the "configuration" option
for the specific application in the Internet Service Manager.

If you want the html files to process Asp.Net instructions,
you'll also need to modify your web.config :

<compilation>
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
<httpHandlers>
<add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" />
</httpHandlers>

Of course, if all you want is to serve html files from within an
ASP.NET application, all you need to do is provide an html link for them.

IIS will serve html files in any ASP.NET application directory.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Keith" <kb******@dslextreme.comwrote in message news:12************@corp.supernews.com...
>I have an IIS 6.0 web server hosting an ASP.NET 2.0 web site. Help files for
the site are pure html. Is there some way to serve these html pages using
the same ASP.NET web site? If so, how do I include them in my ASP.NET project?

Thanks,

Keith

Jul 13 '06 #2
With VS.NET ? You should just be able to add an HTML page item to your
project as for any other item type... Have you tried ? What is the problem
it caused ?

--
Patrice

"Keith" <kb******@dslextreme.coma écrit dans le message de news:
12************@corp.supernews.com...
>I have an IIS 6.0 web server hosting an ASP.NET 2.0 web site. Help files
for
the site are pure html. Is there some way to serve these html pages using
the same ASP.NET web site? If so, how do I include them in my ASP.NET
project?

Thanks,

Keith

Jul 13 '06 #3
Keith,

From the project perspective there is no difference between .aspx an .html
files. Just use Add New/Existing Item menu. From the web site perspective
the difference is that .html files will go to client as they are whereas
..aspx ones will be processed by asp.net.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Keith" <kb******@dslextreme.comwrote in message
news:12************@corp.supernews.com...
>I have an IIS 6.0 web server hosting an ASP.NET 2.0 web site. Help files
for
the site are pure html. Is there some way to serve these html pages using
the same ASP.NET web site? If so, how do I include them in my ASP.NET
project?

Thanks,

Keith

Jul 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dave Smithz | last post by:
Hi, Summary: Best way to divide out the HTML and PHP in some code I inherited. How can I keep the HTML files separate? Full Details: I've now been working two weeks on PHP / MySQL code I...
19
by: Razvan | last post by:
Hi ! I have a big problem with my web site www.mihaiu.name. Sometimes when I visit my page with IE6 the browser ask me to download the index.html file ! The options are open, save, cancel,...
25
by: John Morgan | last post by:
Though I have designed and implemented a number of large reasonably well received web sites I do not consider myself a graphics designer I am now for the first time going to work with a ...
1
by: Javier Estrada | last post by:
I have a source-code library, that provides header and source files (similar to MFC). What would be a good way to automatically incorporate it into other projects? The way I do it today is by...
59
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
13
by: Stephen Kay | last post by:
Is there a way to redirect every single page on an existing web site through a php function? In other words, say I have a whole functional HTML web site, never written to use any php. Now I...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
17
by: henry | last post by:
Folks Here's a skeleton, generic HTML page, call it "index.php". You'll see a bit of php code in the middle: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.