473,320 Members | 1,939 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,320 software developers and data experts.

"Master Pages" for ASP.NET 1.1

Hi!

I'm playing around with Wilson's master pages for ASP.NET 1.1. It seems ok,
but I'm really struggling with the following two problems:

1)

I want all .aspx pages to inherit from the same codebehind (lots of static
content). Some pages have a different menu. I want to be able to, in the
individual .aspx pages, be able to add e.g. <mp:content id="menu"
runat="server" control="menu1" /> to add "controls/menu1.ascx" in place of
the <mp:content>-tag. This makes it very easy to create and maintain new
pages!

2)

Also, I want some pages to have a side panel to the right (as an optional
<mp:content>-tag). However, the design requires the html code to change
depending on whether a side panel is present or not, so I need two different
templates - one with a side panel, and one without. Can I specify a
"virtual" template file as usual in Web.config, and then letting that
"virtual" template, in code, decide to use TemplateWithoutSidePanel.ascx or
TemplateWithSidePanel.ascx?
Thanks!
Sincerely,
Nils Magnus Englund

Nov 18 '05 #1
3 1707
Where did you get these Wilson's master pages?

chanmm

"Nils Magnus Englund" <ni*****************@orkfin.no> wrote in message
news:e6**************@TK2MSFTNGP14.phx.gbl...
Hi!

I'm playing around with Wilson's master pages for ASP.NET 1.1. It seems
ok, but I'm really struggling with the following two problems:

1)

I want all .aspx pages to inherit from the same codebehind (lots of static
content). Some pages have a different menu. I want to be able to, in the
individual .aspx pages, be able to add e.g. <mp:content id="menu"
runat="server" control="menu1" /> to add "controls/menu1.ascx" in place of
the <mp:content>-tag. This makes it very easy to create and maintain new
pages!

2)

Also, I want some pages to have a side panel to the right (as an optional
<mp:content>-tag). However, the design requires the html code to change
depending on whether a side panel is present or not, so I need two
different templates - one with a side panel, and one without. Can I
specify a "virtual" template file as usual in Web.config, and then letting
that "virtual" template, in code, decide to use
TemplateWithoutSidePanel.ascx or TemplateWithSidePanel.ascx?
Thanks!
Sincerely,
Nils Magnus Englund

Nov 18 '05 #2
I downloaded them some time ago from www.wilsondotnet.com - seems he's
started to charge for it, though... too bad :(
Regards,
Nils Magnus Englund

"chanmmn" <ch*****@hotmail.com> wrote in message
news:O6**************@TK2MSFTNGP14.phx.gbl...
Where did you get these Wilson's master pages?

chanmm

"Nils Magnus Englund" <ni*****************@orkfin.no> wrote in message
news:e6**************@TK2MSFTNGP14.phx.gbl...
Hi!

I'm playing around with Wilson's master pages for ASP.NET 1.1. It seems
ok, but I'm really struggling with the following two problems:

1)

I want all .aspx pages to inherit from the same codebehind (lots of
static content). Some pages have a different menu. I want to be able to,
in the individual .aspx pages, be able to add e.g. <mp:content id="menu"
runat="server" control="menu1" /> to add "controls/menu1.ascx" in place
of the <mp:content>-tag. This makes it very easy to create and maintain
new pages!

2)

Also, I want some pages to have a side panel to the right (as an optional
<mp:content>-tag). However, the design requires the html code to change
depending on whether a side panel is present or not, so I need two
different templates - one with a side panel, and one without. Can I
specify a "virtual" template file as usual in Web.config, and then
letting that "virtual" template, in code, decide to use
TemplateWithoutSidePanel.ascx or TemplateWithSidePanel.ascx?
Thanks!
Sincerely,
Nils Magnus Englund


Nov 18 '05 #3
There is also

http://www.metabuilders.com/Tools/Masterpages.aspx

"Nils Magnus Englund" <ni*****************@orkfin.no> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...
I downloaded them some time ago from www.wilsondotnet.com - seems he's
started to charge for it, though... too bad :(
Regards,
Nils Magnus Englund

"chanmmn" <ch*****@hotmail.com> wrote in message
news:O6**************@TK2MSFTNGP14.phx.gbl...
Where did you get these Wilson's master pages?

chanmm

"Nils Magnus Englund" <ni*****************@orkfin.no> wrote in message
news:e6**************@TK2MSFTNGP14.phx.gbl...
Hi!

I'm playing around with Wilson's master pages for ASP.NET 1.1. It seems
ok, but I'm really struggling with the following two problems:

1)

I want all .aspx pages to inherit from the same codebehind (lots of
static content). Some pages have a different menu. I want to be able to, in the individual .aspx pages, be able to add e.g. <mp:content id="menu" runat="server" control="menu1" /> to add "controls/menu1.ascx" in place
of the <mp:content>-tag. This makes it very easy to create and maintain
new pages!

2)

Also, I want some pages to have a side panel to the right (as an optional <mp:content>-tag). However, the design requires the html code to change
depending on whether a side panel is present or not, so I need two
different templates - one with a side panel, and one without. Can I
specify a "virtual" template file as usual in Web.config, and then
letting that "virtual" template, in code, decide to use
TemplateWithoutSidePanel.ascx or TemplateWithSidePanel.ascx?
Thanks!
Sincerely,
Nils Magnus Englund



Nov 18 '05 #4

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

Similar topics

2
by: John Baker | last post by:
Hi: Can someone answer the following questions about "Pages" a. Are they are good way to develop web based access applications? b. Is there a good manual like "Pages for Idiots" which will...
13
by: MLH | last post by:
I'm thinking that maybe error trapping code could be in a global module (standard procedure) and a Master "OnError" statement could be set. Is anything like this in use with VBA for A97?
6
by: José Joye | last post by:
Hello, I'm currently reading the MS Developing Web applications with c# (and VB.net). In the chapter related to Error management, there is a sample about "Page-Level Error Pages" eg: In my...
1
by: Twister | last post by:
hello, I would like to print report with OnPrintPage event and after that add footer "Page X of Y" to every page (because then i would know how many pages there are). How can I do that ? ...
2
by: Wade | last post by:
Hi all, We have created some "Base" class pages for our WebForms and UserControls. For instance, when we create a WebForm called "WebForm1.aspx", instead of inheriting from "System.Web.UI.Page"...
2
by: Ed Staffin | last post by:
In Internet Explorer under the tools/internet options menu on the general tab, there is a settings button under Temporary internet files. In there the user can specify when to "Check for newer...
4
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request...
2
by: hlnet | last post by:
I am newbie. I want use query : SELECT public.Master.ID, public.Master.Description from Master , but ->Error missing table Master .If use query : SELECT "public"."Master"."ID",...
33
by: Manikrag | last post by:
Hi Team, I have to adjust two pages which are provided by 2 diff. services based on some query string, as of now I am using iframes but could not set the height dynamically. Both the child pages...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.