How to include external html file on asp.net page

How can I enable a webpage external html filein asp.net. In PHP we can use a function include, if asp.net has any similar function, please let me know. My intention is that I have a common html header file, so I need to include this file on all pages aspx.

+4
source share
5 answers

The server part is available on different platforms and is useful for enabling static content. You can use them in IIS, but I have to be included in IIS7.

<!-- #include file="Static/Menu.html" -->

Instructions for enabling SSI in IIS7 are available at http://tech.mikeal.com/

templating, MasterPages, .

+5

, -?

asp.net -. .

+3

ASP.NET - PHP, , , , PHP. "include" , , - ASP.NET. . http://www.asp.net/master-pages/tutorials MSDN , (, .aspx-) HTML .

User Controls. , , . , , -. "".

. ASP.NET SO.

+2

MasterPage UserControl, , Response.writeFile, , :

ASP script . , ASP , , , -

+2

All Articles