2013. 12. 24. 10:47
Server side includes are available across different platforms and a useful for including static content. You can use them in IIS but I they need to be enabled in IIS7.
<!-- #include file="Static/Menu.html" -->
Instructions to enable SSI in IIS7 are available at http://tech.mikeal.com/
For dynamic content, there is a built-in method of templating called MasterPages, this should be used instead.
======================================================================
A very quick and dirty way is to put the following in your aspx page:
<% Response.WriteFile("~/htmlfilename.htm")%>
======================================================================
'.NET > .NET' 카테고리의 다른 글
Response.Redirect Vs Server.Transfer in ASP.Net (0) | 2013.12.30 |
---|---|
Difference between Application_Start and Application_OnStart (0) | 2013.12.26 |
[.NET MVC] Controller to Return an Error Message Instead of a View? (0) | 2013.11.09 |
[.NET] Retrieving Data Using a DataReader (0) | 2013.11.06 |
[ASP.NET] 페이지간 데이터 전송 (0) | 2013.09.13 |