473,789 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.skagi t.wa.us
Nov 18 '05 #1
4 2020
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=t rue

Also, some additional pattern related tech references are also avaliable
there:
#Web Presentation Patterns
http://msdn.microsoft.com/library/en...PresentationPa
tterns.asp?fram e=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*******@nospa m.com
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:gr******** ********@cpmsft ngxa06.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=t rue

Also, some additional pattern related tech references are also avaliable
there:
#Web Presentation Patterns
http://msdn.microsoft.com/library/en...PresentationPa tterns.asp?fram e=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?fram e=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
1975
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 page inheritance instead? any help will be appretiated. Thanks
14
2406
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 standard ASPX page with minor modifications to it. All of my pages inherit from a "BasePage.cs" class, that handles common things like getting the user's information out of the session, determines if a page should or should not be password...
3
1438
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 to me). But for some reason, the image won't come up because the path (src) for that image in the actual page displayed isn't right. In the "src," I've tried using a path that starts with the "~" (src="~/Shared/Images/xyz.jpg") and a path that is...
17
3161
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 pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
1
1825
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 ControlObject.Style.Add("Left", "100")
1
1146
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 extract the body from the DWT pages and drop it into then new master pages? I imagine it's a process very similar to the way you can select a plain site, then choose to attach the DWTs in one shot.
3
5975
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 master page, which both of these child master pages are based on, and in turn the final pages are based on one of these child master pages.
4
2016
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 Page?
6
1691
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 templates in that when the master page is updated, all the child pages created from the master page are updated and then they all need to be uploaded to the server? Or do you only have to upload the master page after an update?
0
9506
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10403
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9978
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7524
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6755
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4087
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2904
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.