Layouts
Hello,
I want to have a class that a web site will use. I named it BaseSiteLayout, which inherits from System.Web.UI.Page. This defines the bare minimum settings and properties for the page class that I want to create. What I want to do is have additional SiteLayouts that add to the BaseSiteLayout, and add additional functionality.
For example, the BaseSiteLayout class defines the following HTML in the OnInit event:
<html>
<head>
... head information...
</head>
<body>
</body>
</html>
Then, say have an ExtendedSiteLayout class that would render in the OnInit method:
<html>
<head>
... head information...
</head>
<body>
<table>
<tr>
<td>Logo</td>
<td>Title</td>
</tr>
<tr>
<td>Sidebar</td>
<td>Page content</td>
</tr>
</table>
</body>
</html>
Does anybody know if this is possible? Does this make sense?
Thanks,
Brian
__________________
Brian
|