473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Master pages, templates, inheritance

With ASP we have setup a pretty good method for maintaining a consistent
look and feel with minimal effort. The method has it's pros and cons, but
the maintenance is minimal. The method consists of utilizing a single
default.asp page to call any page on the site passing query parameters with
the page to determine what page and associated menu to load. The menu info
is maintained in a database and a COM+ dll is utilized to go to the
database, get xml, and use an XSLT template to transform the data into the
HTML needed for the menu.

This all is working fine, but we are discussing moving to ASP.NET and what
our options are for doing something similar. Some of the development team
have issues with the URL since all pages differ only in the query
parameters. There is a security context issue as well. I've looked on the
net and read various articles from using custom controls, inheritance, page
templates, and other schemes. Everything I've looked at has it's own pros
and cons and I haven't really seen anything that looks like 'the' way to do
it.

I've heard mentions of 'master pages' with the new version of .NET but not
much detail about what it will offer. Before I spend a lot of time trying to
come up with something that works for what I want to do I thought I would
ask in this forum and see if there are specific recommendations from the
user community and if anyone has detailed infomation about master pages that
isn't a bunch of marketing hype.

I would think this is a relatively common thing that sites want to do. If
you have thousands of pages on your site that you want to fit into a common
look and feel (header, menu, footer) what's the best way to accomplish this?

Thanks,

John Holmes
Skagit County Information Services
jo****@co.skagit.wa.us
Nov 18 '05 #1
4 2007
Hi John,
Thanks for posting in the community!
From your description, you're going to move your classic ASP application
onto the ASP.NET platform. The asp app used to use the Centre Controller
model which used a central page to process all the web requests and
dispatch the proper response content dynamically via the query params. So
you're looking for some references and materials on the similiar
implemention in ASP.NET, yes?
If there is anything I misunderstood, please feel free to let me know.

Based on my experience,in ASP.NET , an certain web page is constructed as a
form, we add controls on to it and the web form has buildin support for
mantain its state infos which is quite different from the classic ASP(all
contents are rendered dynamically via script block in page). Though this
well much eaiser our work on develop web page, it'll sometimes make the
pages redudant because we needn't every page like this and want to
dynamically generate the content based on a certain common page
template(frame), yes?

I've ever read some tech articles of the Microsoft Application Design
pattern. And there is one named "Front Controller" in ASP.NET, which
described implement a central controller via HttpHandler to process all
the web reqeusts of an ASP.NET web app centrally, I think it may be
suitable for you situation. I'm not sure whether you've read the articles,
here are their web links in MSDN:

#Front Controller
http://msdn.microsoft.com/library/en...ntController.a
sp?frame=true

#Implementing Front Controller in ASP.NET Using HTTPHandler
http://msdn.microsoft.com/library/en...ntControllerIn
ASP.asp?frame=true

Also, some additional pattern related tech references are also avaliable
there:
#Web Presentation Patterns
http://msdn.microsoft.com/library/en...PresentationPa
tterns.asp?frame=true

#Design and Implementation Guidelines for Web Clients
http://msdn.microsoft.com/library/en...2.asp?frame=tr
ue

Hope these helpful. Also, if you have any further questions or ideas,
please always feel free to post here. We'll be glad to discuss on this.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2
Hi John,

Have you had a chance to check out the suggestions in my last reply or have
you got any ideas on this issue? If you need any further assistance, please
feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3
is there any sample code in vb.net for these patterns which a person can
download. Its a difficult to understand and translate this into a vb sample
where as if i could download a working sample I could understand what I need
to implement it in a short period of time.

--
mo*******@nospam.com
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:gr****************@cpmsftngxa06.phx.gbl...
Hi John,
Thanks for posting in the community!
From your description, you're going to move your classic ASP application
onto the ASP.NET platform. The asp app used to use the Centre Controller
model which used a central page to process all the web requests and
dispatch the proper response content dynamically via the query params. So
you're looking for some references and materials on the similiar
implemention in ASP.NET, yes?
If there is anything I misunderstood, please feel free to let me know.

Based on my experience,in ASP.NET , an certain web page is constructed as a form, we add controls on to it and the web form has buildin support for
mantain its state infos which is quite different from the classic ASP(all
contents are rendered dynamically via script block in page). Though this
well much eaiser our work on develop web page, it'll sometimes make the
pages redudant because we needn't every page like this and want to
dynamically generate the content based on a certain common page
template(frame), yes?

I've ever read some tech articles of the Microsoft Application Design
pattern. And there is one named "Front Controller" in ASP.NET, which
described implement a central controller via HttpHandler to process all
the web reqeusts of an ASP.NET web app centrally, I think it may be
suitable for you situation. I'm not sure whether you've read the articles,
here are their web links in MSDN:

#Front Controller
http://msdn.microsoft.com/library/en...ntController.a sp?frame=true

#Implementing Front Controller in ASP.NET Using HTTPHandler
http://msdn.microsoft.com/library/en...ntControllerIn ASP.asp?frame=true

Also, some additional pattern related tech references are also avaliable
there:
#Web Presentation Patterns
http://msdn.microsoft.com/library/en...PresentationPa tterns.asp?frame=true

#Design and Implementation Guidelines for Web Clients
http://msdn.microsoft.com/library/en...2.asp?frame=tr ue

Hope these helpful. Also, if you have any further questions or ideas,
please always feel free to post here. We'll be glad to discuss on this.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4
Hi Moondaddy,

As for the Enterprise patterns, currently there seems only C# version in
the MSDN library and I've also provide you a simple demo(in vb.net in
another thread in this group).

For the MasterPage, it is a new feature in the ASP.NET's next release
Whidbey which provide us much stronger capability on generating common base
page and customzied derived pages. Here are some tech article introduce
this feature:

#Standardize Your Site Fast With Master Pages
http://msdn.microsoft.com/library/en...ndardize-maste
rpages.asp?frame=true

#Master Pages in ASP.NET Whidbey
http://msdn.microsoft.com/library/en...terpages.asp?f
rame=true

Hope helps.Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: nLella | last post by:
Hello, I am trying to implement page templates in my web application. I am using frame work 1.1. Can you suggest me, if I have to go with Master pages(dll developed by asp.net team) or use...
14
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a...
3
by: Alex Maghen | last post by:
This seems like it should be so simple but I really can't figure out what's going on: I have a simple MasterPage. On that page I want to place an Image (IMG or asp:Image, doesn't really matter...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
1
by: Rob R. Ainscough | last post by:
I'm running into a problem with Master Pages. I have some "absolute" controls (labels, textboxes) that I position on the page using: ControlObject.Style.Add("Top", "250") or ...
1
by: Mark | last post by:
Currently I have a FP2003 site using Dynamic Web Templates. I plan to use VS to design a series of master pages to replace the DWTs. Does anyone know if there is an automated mechanism to...
3
by: Rich | last post by:
Hi, I want to use 2 master pages, one for the main part of the site, the other for the admin pages. They are quite similar, with many shared elements. Ideally I would like to have a parent...
4
by: Cirene | last post by:
I am using VS.NET 2008. In Dreamweaver you can create page templates (equivalent to Master Pages) and make HTML documents based on them. In VS.NET can you have a HTML file linked to a Master...
6
by: Mickey | last post by:
Coming from a Dreamweaver/ASP/PHP background. Planning to use Visual Studio 2008 for a website. Complete newbie question here (please be gentle!): Do master pages work similar to Dreamweaver...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.