Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 2nd, 2004, 08:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
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
  #2 (permalink)  
Old June 3rd, 2004, 07:29 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
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
  #3 (permalink)  
Old June 3rd, 2004, 08:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 07:29 AM



All times are GMT -4. The time now is 05:22 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.