470,628 Members | 2,251 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,628 developers. It's quick & easy.

"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 1612
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Josť Joye | last post: by
2 posts views Thread by Wade | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.