Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2004, 08:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default 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
 
Old June 3rd, 2004, 07:29 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It makes PERFECT sense!! What an idea! ;)

This should get you by until ASP.net 2.0 with MasterPages built in comes out:
<shamelessSelfPromotion>
http://www.geekdork.com/WebSkeleton
</shamelessSelfPromotion>

Peter
-------------------------
Work smarter, not harder
 
Old June 3rd, 2004, 08:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Thanks. I was reading about the master pages, and that will be a great feature. Nice site, by the way.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
same application different report layouts hit69 BOOK: Professional Crystal Reports for VS.NET 0 February 8th, 2005 08:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.