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

MasterPages or Web Visual Inheritance (ASP.Net 1.1)?

VR
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some
WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages,
my MasterPage does not have a form tag itself so, cannot be called a WebForm
itself, the child pages will implement forms).
I created a Master.aspx page and removed all HTML from it, added some code
to the .aspx.vb file to add controls to my page. Then I created a Child.aspx
and changed the "Inherits System.Web.UI.Page" to "Inherits MyWeb.Master" and
everything gone really fine.

Problem: all I need as HTML/Forms/Controls/Etc need to be created by code, I
cannot use the Designer to work on the page (but, let's say that's my
problem)

Question: Is there anything I'm missing here? Is that easy like it? Is there
any internal ASP.Net design considerations that would bring me problems with
this approach?

PS: I know about the MasterPage control found in www.asp.net, I do not need
an alternative for my approach, I just want to know if this kind of design
would work without problems.
Thanks,
Victor Reboucas
Nov 18 '05 #1
6 2060
Are you trying this in 2.0 or in 1.0/1.1 ?
If 2.0 you need the MASTER= in the page
If 1.0/1.1 you aren't going to get the same functionality

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some
WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx
pages, my MasterPage does not have a form tag itself so, cannot be called
a WebForm itself, the child pages will implement forms).
I created a Master.aspx page and removed all HTML from it, added some code
to the .aspx.vb file to add controls to my page. Then I created a
Child.aspx and changed the "Inherits System.Web.UI.Page" to "Inherits
MyWeb.Master" and everything gone really fine.

Problem: all I need as HTML/Forms/Controls/Etc need to be created by code,
I cannot use the Designer to work on the page (but, let's say that's my
problem)

Question: Is there anything I'm missing here? Is that easy like it? Is
there any internal ASP.Net design considerations that would bring me
problems with this approach?

PS: I know about the MasterPage control found in www.asp.net, I do not
need an alternative for my approach, I just want to know if this kind of
design would work without problems.
Thanks,
Victor Reboucas

Nov 18 '05 #2
VR
As in the subject of this message, ASP.Net 1.1.

The problem is not getting the same functionality (I know these are two
different approaches), I want to know if I could face problems with this
approach (WebForms Visual Inheritance). Let's say I asked myself "since
Framework 1.0 there is Visual Inheritance for WinForms, why did not MS say
you can do the same with WebForms, is there any problem I'm missing?"

Regards,
Victor Reboucas

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Are you trying this in 2.0 or in 1.0/1.1 ?
If 2.0 you need the MASTER= in the page
If 1.0/1.1 you aren't going to get the same functionality

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some
WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx
pages, my MasterPage does not have a form tag itself so, cannot be called
a WebForm itself, the child pages will implement forms).
I created a Master.aspx page and removed all HTML from it, added some
code to the .aspx.vb file to add controls to my page. Then I created a
Child.aspx and changed the "Inherits System.Web.UI.Page" to "Inherits
MyWeb.Master" and everything gone really fine.

Problem: all I need as HTML/Forms/Controls/Etc need to be created by
code, I cannot use the Designer to work on the page (but, let's say
that's my problem)

Question: Is there anything I'm missing here? Is that easy like it? Is
there any internal ASP.Net design considerations that would bring me
problems with this approach?

PS: I know about the MasterPage control found in www.asp.net, I do not
need an alternative for my approach, I just want to know if this kind of
design would work without problems.
Thanks,
Victor Reboucas


Nov 18 '05 #3
Visual Inheritance is not there for forms in WebForms at this point. You can
get it with controls and you can work around it at code time but I do not
believe you can get design time visual inheritance in VS2002/3.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
As in the subject of this message, ASP.Net 1.1.

The problem is not getting the same functionality (I know these are two
different approaches), I want to know if I could face problems with this
approach (WebForms Visual Inheritance). Let's say I asked myself "since
Framework 1.0 there is Visual Inheritance for WinForms, why did not MS say
you can do the same with WebForms, is there any problem I'm missing?"

Regards,
Victor Reboucas

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Are you trying this in 2.0 or in 1.0/1.1 ?
If 2.0 you need the MASTER= in the page
If 1.0/1.1 you aren't going to get the same functionality

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some
WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx
pages, my MasterPage does not have a form tag itself so, cannot be
called a WebForm itself, the child pages will implement forms).
I created a Master.aspx page and removed all HTML from it, added some
code to the .aspx.vb file to add controls to my page. Then I created a
Child.aspx and changed the "Inherits System.Web.UI.Page" to "Inherits
MyWeb.Master" and everything gone really fine.

Problem: all I need as HTML/Forms/Controls/Etc need to be created by
code, I cannot use the Designer to work on the page (but, let's say
that's my problem)

Question: Is there anything I'm missing here? Is that easy like it? Is
there any internal ASP.Net design considerations that would bring me
problems with this approach?

PS: I know about the MasterPage control found in www.asp.net, I do not
need an alternative for my approach, I just want to know if this kind of
design would work without problems.
Thanks,
Victor Reboucas



Nov 18 '05 #4
VR
Yes, I know it's not there for forms (as said in the first message *), I
used the term "WebForms visual inheritance" as a way to get the idea that
what I'm doing is the same that people do in WinForms as Visual Inheritance
and I'm not concerned in using the designer (as said in the first message
also **), so, my question is still unanswerer:

Is there any "ASP.NET INTERNAL DESING ISSUE" that could bring me problems
using this approach?

* (let's say .aspx pages, my MasterPage does not have a form tag itself so,
cannot be called a WebForm itself, the child pages will implement forms)
** Problem: all I need as HTML/Forms/Controls/Etc need to be created by
code, I cannot use the Designer to work on the page (but, let's say that's
my problem)

Regards,
Victor Reboucas
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uR*************@TK2MSFTNGP12.phx.gbl...
Visual Inheritance is not there for forms in WebForms at this point. You
can get it with controls and you can work around it at code time but I do
not believe you can get design time visual inheritance in VS2002/3.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
As in the subject of this message, ASP.Net 1.1.

The problem is not getting the same functionality (I know these are two
different approaches), I want to know if I could face problems with this
approach (WebForms Visual Inheritance). Let's say I asked myself "since
Framework 1.0 there is Visual Inheritance for WinForms, why did not MS
say you can do the same with WebForms, is there any problem I'm missing?"

Regards,
Victor Reboucas

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Are you trying this in 2.0 or in 1.0/1.1 ?
If 2.0 you need the MASTER= in the page
If 1.0/1.1 you aren't going to get the same functionality

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing
some WinForms Visual Inheritance I tryed it with WebForms (let's say
.aspx pages, my MasterPage does not have a form tag itself so, cannot
be called a WebForm itself, the child pages will implement forms).
I created a Master.aspx page and removed all HTML from it, added some
code to the .aspx.vb file to add controls to my page. Then I created a
Child.aspx and changed the "Inherits System.Web.UI.Page" to "Inherits
MyWeb.Master" and everything gone really fine.

Problem: all I need as HTML/Forms/Controls/Etc need to be created by
code, I cannot use the Designer to work on the page (but, let's say
that's my problem)

Question: Is there anything I'm missing here? Is that easy like it? Is
there any internal ASP.Net design considerations that would bring me
problems with this approach?

PS: I know about the MasterPage control found in www.asp.net, I do not
need an alternative for my approach, I just want to know if this kind
of design would work without problems.
Thanks,
Victor Reboucas



Nov 18 '05 #5
In short, have you tried?
You're asking about doing something quite specific to your needs and your
layout, not many are going to be able to answer a specifc answer with a "is
there something that coudl cause problems" type question. The best approach
it to try, and see if you get an error, then post it.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
Yes, I know it's not there for forms (as said in the first message *), I
used the term "WebForms visual inheritance" as a way to get the idea that
what I'm doing is the same that people do in WinForms as Visual
Inheritance and I'm not concerned in using the designer (as said in the
first message also **), so, my question is still unanswerer:

Is there any "ASP.NET INTERNAL DESING ISSUE" that could bring me problems
using this approach?

* (let's say .aspx pages, my MasterPage does not have a form tag itself
so, cannot be called a WebForm itself, the child pages will implement
forms)
** Problem: all I need as HTML/Forms/Controls/Etc need to be created by
code, I cannot use the Designer to work on the page (but, let's say that's
my problem)

Regards,
Victor Reboucas
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uR*************@TK2MSFTNGP12.phx.gbl...
Visual Inheritance is not there for forms in WebForms at this point. You
can get it with controls and you can work around it at code time but I do
not believe you can get design time visual inheritance in VS2002/3.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
As in the subject of this message, ASP.Net 1.1.

The problem is not getting the same functionality (I know these are two
different approaches), I want to know if I could face problems with this
approach (WebForms Visual Inheritance). Let's say I asked myself "since
Framework 1.0 there is Visual Inheritance for WinForms, why did not MS
say you can do the same with WebForms, is there any problem I'm
missing?"

Regards,
Victor Reboucas

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Are you trying this in 2.0 or in 1.0/1.1 ?
If 2.0 you need the MASTER= in the page
If 1.0/1.1 you aren't going to get the same functionality

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
> Hi, I read about Master Pages in ASP.Net 2.0 and after implementing
> some WinForms Visual Inheritance I tryed it with WebForms (let's say
> .aspx pages, my MasterPage does not have a form tag itself so, cannot
> be called a WebForm itself, the child pages will implement forms).
> I created a Master.aspx page and removed all HTML from it, added some
> code to the .aspx.vb file to add controls to my page. Then I created a
> Child.aspx and changed the "Inherits System.Web.UI.Page" to "Inherits
> MyWeb.Master" and everything gone really fine.
>
> Problem: all I need as HTML/Forms/Controls/Etc need to be created by
> code, I cannot use the Designer to work on the page (but, let's say
> that's my problem)
>
> Question: Is there anything I'm missing here? Is that easy like it? Is
> there any internal ASP.Net design considerations that would bring me
> problems with this approach?
>
> PS: I know about the MasterPage control found in www.asp.net, I do not
> need an alternative for my approach, I just want to know if this kind
> of design would work without problems.
>
>
> Thanks,
> Victor Reboucas
>
>



Nov 18 '05 #6
VR
Please, stop sending messages asking about things I've said in the first
message:

(part of first message)
>> Hi, I read about Master Pages in ASP.Net 2.0 and after implementing
>> some WinForms Visual Inheritance I tryed it with WebForms

.... of course I've tryed, I'm not asking "if I will be able to do that" (I
already did it, ok?), all I'm asking is:

Is there any surprise I could face (Ex: internal IIS issue/memory leaks/etc)
using this kind of approach? Why does not MS recomend this kind of
Inheritance as it recomends in WinForms?

It's not particular as you are sugesting, it's all about inheriting from
System.Web.UI.Page object, no secrets, no particularities.
Regards,
Victor Reboucas

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e$*************@tk2msftngp13.phx.gbl... In short, have you tried?
You're asking about doing something quite specific to your needs and your
layout, not many are going to be able to answer a specifc answer with a
"is there something that coudl cause problems" type question. The best
approach it to try, and see if you get an error, then post it.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
Yes, I know it's not there for forms (as said in the first message *), I
used the term "WebForms visual inheritance" as a way to get the idea that
what I'm doing is the same that people do in WinForms as Visual
Inheritance and I'm not concerned in using the designer (as said in the
first message also **), so, my question is still unanswerer:

Is there any "ASP.NET INTERNAL DESING ISSUE" that could bring me problems
using this approach?

* (let's say .aspx pages, my MasterPage does not have a form tag itself
so, cannot be called a WebForm itself, the child pages will implement
forms)
** Problem: all I need as HTML/Forms/Controls/Etc need to be created by
code, I cannot use the Designer to work on the page (but, let's say
that's my problem)

Regards,
Victor Reboucas
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uR*************@TK2MSFTNGP12.phx.gbl...
Visual Inheritance is not there for forms in WebForms at this point. You
can get it with controls and you can work around it at code time but I
do not believe you can get design time visual inheritance in VS2002/3.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VR" <vc***@hotmail.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
As in the subject of this message, ASP.Net 1.1.

The problem is not getting the same functionality (I know these are two
different approaches), I want to know if I could face problems with
this approach (WebForms Visual Inheritance). Let's say I asked myself
"since Framework 1.0 there is Visual Inheritance for WinForms, why did
not MS say you can do the same with WebForms, is there any problem I'm
missing?"

Regards,
Victor Reboucas

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
> Are you trying this in 2.0 or in 1.0/1.1 ?
> If 2.0 you need the MASTER= in the page
> If 1.0/1.1 you aren't going to get the same functionality
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "VR" <vc***@hotmail.com> wrote in message
> news:%2***************@TK2MSFTNGP12.phx.gbl...
>> Hi, I read about Master Pages in ASP.Net 2.0 and after implementing
>> some WinForms Visual Inheritance I tryed it with WebForms (let's say
>> .aspx pages, my MasterPage does not have a form tag itself so, cannot
>> be called a WebForm itself, the child pages will implement forms).
>> I created a Master.aspx page and removed all HTML from it, added some
>> code to the .aspx.vb file to add controls to my page. Then I created
>> a Child.aspx and changed the "Inherits System.Web.UI.Page" to
>> "Inherits MyWeb.Master" and everything gone really fine.
>>
>> Problem: all I need as HTML/Forms/Controls/Etc need to be created by
>> code, I cannot use the Designer to work on the page (but, let's say
>> that's my problem)
>>
>> Question: Is there anything I'm missing here? Is that easy like it?
>> Is there any internal ASP.Net design considerations that would bring
>> me problems with this approach?
>>
>> PS: I know about the MasterPage control found in www.asp.net, I do
>> not need an alternative for my approach, I just want to know if this
>> kind of design would work without problems.
>>
>>
>> Thanks,
>> Victor Reboucas
>>
>>
>
>



Nov 18 '05 #7

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

Similar topics

1
by: nLella | last post by:
I am trying to build a new web application and trying to implement either templates or master pages in it. I tried to read several articles but could not actually deside on weather to go with the...
10
by: Gopal Prabhakaran | last post by:
Hi Pls Help me to do Visual Inheritance with ASP.NET -- Thanx Gopal Prabhakaran
4
by: Jeff Lynch | last post by:
I need to call a class on every web page in a site. In ASP.NET 1.1 I would call this class before the Page_Load event in each web page's code-behind file since it needs to run before the web page...
3
by: Lars W. Andersen | last post by:
Hi, I am looking for a good - easy to comprehend little CMS application for my "beginners" asp.net 2.0 site. It must be able to use Access as the database (only a couple of people will be...
5
by: Nick Wouters | last post by:
Dear All In Classic ASP I used CSS for ALL layout. Now in ASP.NET version 2 I am testing out Masterpages as they come in very handy. It seems like it is replacing CSS for layout but what is...
4
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu...
3
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm well into a project at the moment which uses a MasterPage. I'm also using seperate code-behind files for each page (C#). I just realised that the MasterPage doesn't give you a...
0
by: Arthur Dent | last post by:
I know in VS2005, in ASP.NET, you can have multiple levels of masterpages, but that the designer cannot handle these, and you will lose your visual designer for any webforms using multiple masters....
8
by: Mort Strom | last post by:
Right now the header of my master page contains all of the CSS styles for all of the pages that might be loaded in my ContentPlaceHolder. The problem is that my <styletag is getting too large to...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
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...

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.