I have a web application that has five ASPX pages. All have similar look and feel with same header, menu and footer. In order to simplify my coding I created two include files header.aspx and footer.aspx and included them at the right place in all my five ASPX pages. So my pages look like
Page1.aspx
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>page1 title</title>
</head>
<body>
<!-- #include VIRTUAL="/include/globalheader.aspx" -->
my content for page1 goes here
<!-- #include VIRTUAL="/include/globalfooter.aspx" -->
</body>
</html>
There is a better way to achieve this. Its called to Master Page. Master pages provide functionality that developers have traditionally created by copying existing code, text, and control elements repeatedly, using framesets, using include files for
