M
Mitch
I'm trying to use page inheritance so that I can derive all web pages from a
template. There are a bunch of examples at this site
http://authors.aspalliance.com/PaulWilson/Articles/?id=1, but strangely
enough, not a single one works with my design.
My format is quite simple: large table direcly under the <HTML> tag contains
a header usercontrol, a left side menu usercontrol and then page content.
Here is a simplified representation of my template design (you should be
able to paste this into a blank html doc):
<%@ Page language="c#" Codebehind="Template.aspx.cs" AutoEventWireup="false"
Inherits="StemCellPolitics._Template" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="_Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Menu" Src="_Menu.ascx" %>
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE>Default</TITLE>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body>
<table id="tbl" cellSpacing="0" cols="3" cellPadding="0" width="800"
border="0">
<tr>
<td colSpan="3">
<uc1:header id="Header1" runat="server"></uc1:header></td>
</tr>
<tr>
<td vAlign="top" width="145"><uc1:menu id="Menu1"
runat="server"></uc1:menu><img height="1" src="images/1x1.gif" width="145">
</td>
<td width="20"></td>
<td valign="top">
<table cellSpacing="0" cellPadding="0" width="100%" border="0"
ID="Table1">
<TBODY>
<tr>
<td vAlign="middle" width="100%" class="PageHeading">
<!-- Page Title Goes Here-->
<hr>
<br>
</td>
</tr>
<tr>
<td>
<!-- Page Content Goes Here-->
</td>
</tr>
</table>
</td>
</tr>
</TBODY></table>
</body>
</HTML>
I have not found a technique that allows me to load the above HTML, then
load the page content, and then continue building the page HTML. Any
suggestions?
template. There are a bunch of examples at this site
http://authors.aspalliance.com/PaulWilson/Articles/?id=1, but strangely
enough, not a single one works with my design.
My format is quite simple: large table direcly under the <HTML> tag contains
a header usercontrol, a left side menu usercontrol and then page content.
Here is a simplified representation of my template design (you should be
able to paste this into a blank html doc):
<%@ Page language="c#" Codebehind="Template.aspx.cs" AutoEventWireup="false"
Inherits="StemCellPolitics._Template" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="_Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Menu" Src="_Menu.ascx" %>
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE>Default</TITLE>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body>
<table id="tbl" cellSpacing="0" cols="3" cellPadding="0" width="800"
border="0">
<tr>
<td colSpan="3">
<uc1:header id="Header1" runat="server"></uc1:header></td>
</tr>
<tr>
<td vAlign="top" width="145"><uc1:menu id="Menu1"
runat="server"></uc1:menu><img height="1" src="images/1x1.gif" width="145">
</td>
<td width="20"></td>
<td valign="top">
<table cellSpacing="0" cellPadding="0" width="100%" border="0"
ID="Table1">
<TBODY>
<tr>
<td vAlign="middle" width="100%" class="PageHeading">
<!-- Page Title Goes Here-->
<hr>
<br>
</td>
</tr>
<tr>
<td>
<!-- Page Content Goes Here-->
</td>
</tr>
</table>
</td>
</tr>
</TBODY></table>
</body>
</HTML>
I have not found a technique that allows me to load the above HTML, then
load the page content, and then continue building the page HTML. Any
suggestions?