Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 August 27th, 2004, 03:36 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# site framework

Hi

I just want to confirm if I am reading this correctly or if I am missing something;

In ThePhile sample the header, menu and footer is included in each .aspx page. So my concern is what if you want to change the structure of the framework? Say the design changes and calls for a sub header that cannot be included in the header tag, do I have to go to every page and add the sub header include code? If I do is there not a better way?

We want the design to be as flexible as possible, kind of like with a frameset (although I won't be using one) where you can change the underlying structure just by changing the main frame page.

Thanks

Tim
 
Old August 27th, 2004, 04:53 PM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

 U don't need to go to every page and change something.
Use user controls and when you develop it drag it and drop it to all the pages and if you need to change something u will change it in the user control not in the pages. ok?
Thanks,
Marenela

 
Old August 27th, 2004, 06:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's right - each user control is like a separate page that gets included in each page (the .net method of doing include files).

This can get out of control if you have a large number of user controls, and the placement on tags on the screen can get complicated. Sometimes a tag opened in the header user control is closed in the footer user control.

To solve many of these "user control hell" issues, ASP.NET 2.0 introduces the concept of Master Pages. This is a much cooler way of handling standard content in many pages.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
changing host server framework 2.0 from framework jay_vijesh ASP.NET 1.x and 2.0 Application Design 1 September 11th, 2006 02:18 PM
How use framework components in compact framework? r_bazghaleh C# 0 February 19th, 2006 05:05 AM
how do i change the site icon on a geocitiies site uprocker2 HTML Code Clinic 2 March 4th, 2005 07:20 AM
Framework 1.0 to 1.1 reyboy General .NET 2 September 16th, 2004 02:12 PM





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