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 TemplateWithout SidePanel.ascx or
TemplateWithSid ePanel.ascx?
Thanks!
Sincerely,
Nils Magnus Englund 3 1731
Where did you get these Wilson's master pages?
chanmm
"Nils Magnus Englund" <ni************ *****@orkfin.no > wrote in message
news:e6******** ******@TK2MSFTN GP14.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 TemplateWithout SidePanel.ascx or TemplateWithSid ePanel.ascx?
Thanks!
Sincerely, Nils Magnus Englund
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*****@hotmai l.com> wrote in message
news:O6******** ******@TK2MSFTN GP14.phx.gbl... Where did you get these Wilson's master pages?
chanmm
"Nils Magnus Englund" <ni************ *****@orkfin.no > wrote in message news:e6******** ******@TK2MSFTN GP14.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 TemplateWithout SidePanel.ascx or TemplateWithSid ePanel.ascx?
Thanks!
Sincerely, Nils Magnus Englund
There is also http://www.metabuilders.com/Tools/Masterpages.aspx
"Nils Magnus Englund" <ni************ *****@orkfin.no > wrote in message
news:e%******** ********@TK2MSF TNGP15.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*****@hotmai l.com> wrote in message news:O6******** ******@TK2MSFTN GP14.phx.gbl... Where did you get these Wilson's master pages?
chanmm
"Nils Magnus Englund" <ni************ *****@orkfin.no > wrote in message news:e6******** ******@TK2MSFTN GP14.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 TemplateWithout SidePanel.ascx or TemplateWithSid ePanel.ascx?
Thanks!
Sincerely, Nils Magnus Englund
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 help in setting up a simple
application?
Best
|
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?
|
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 form:
========
|
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 ?
Regards
Pawel
|
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" we implement from our "Base" class page
which itself inherits from "System.Web.UI.Page" -- I know, pretty standard.
We do the same with our UserControls, instead they inherit from
"System.Web.UI.UserControl".
Now, there are some methods that we...
| |
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 versions of stored pages." I want
to make sure that my pages are refreshed every time they visit regardless of
this setting. Is there a way to do this? Thanks ... Ed
|
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 onto some stack, where it would
continue to be processed asynchronously (most importantly preserving
things like view state, form post data, etc). In the interim, while the
main request is processed, a friendly page will be displayed to the
user....
|
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", "public"."Master"."Description" from "Master"
It is OK.
SELECT "ID", "Description" from "Master". It's OK
SELECT ID, Description from "Master" . ERROR : column "id" does not exist at character 8.
|
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 can came up with any height.
and iframes are useless in this case as I have to set some height or else it will take the defualt value for height property.
I tried to set it thru java script and css but got the "access denied error" as java...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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...
| |