Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Web form Inheritance


Message #1 by Terrence Joubert <Terrence@v...> on Tue, 22 Oct 2002 12:02:56 +0400
Hi,
 
I am experiencing some problems with Web Form Inheritance. I have one web
form object called GenericEditor. This web form provides basic services. It
has two hidden fields and two buttons that will be present on the child web
forms. I start implementing one child web form called ChildEditor. To
inherit from GenericEditor, I added an Inherits GenericEditor statement
after the class declaration of the code behind class. My problem is that all
the properties and methods of GenericEditor are accessible from within
ChildEditor (in the code behind class), but neither the Visual Studio web
form designer nor my browser is visually showing  the two buttons and the
two hidden fields when ChildEditor loads. 
 
Is there something that I missed somewhere, or is this the actual Web Form
inheritance architecture of .NET? 
 
Terrence J. Joubert
Software Engineer
VCS, PO BOX 1000
Victoria, Mahe

Message #2 by <wrox@d...> on Tue, 22 Oct 2002 21:23:37 +0100
Hi,

My understanding is that Visual Inheritance is not supported in Web
Forms only supported for Windows Forms - if it is possible I would like
to know how as it would be very handy!

Cheers

David 

-----Original Message-----
From: Terrence Joubert [mailto:Terrence@v...] 
Sent: 22 October 2002 09:03
To: ASP.NET
Subject: [aspx] Web form Inheritance

Hi,
 
I am experiencing some problems with Web Form Inheritance. I have one
web
form object called GenericEditor. This web form provides basic services.
It
has two hidden fields and two buttons that will be present on the child
web
forms. I start implementing one child web form called ChildEditor. To
inherit from GenericEditor, I added an Inherits GenericEditor statement
after the class declaration of the code behind class. My problem is that
all
the properties and methods of GenericEditor are accessible from within
ChildEditor (in the code behind class), but neither the Visual Studio
web
form designer nor my browser is visually showing  the two buttons and
the
two hidden fields when ChildEditor loads. 
 
Is there something that I missed somewhere, or is this the actual Web
Form
inheritance architecture of .NET? 
 
Terrence J. Joubert
Software Engineer
VCS, PO BOX 1000
Victoria, Mahe


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---

Message #3 by Terrence Joubert <Terrence@v...> on Wed, 23 Oct 2002 07:39:56 +0400
David 

From what I've been reading from MSDN since yesterday, inheritance occurs
only among the code behind classes and the child code behind class does not
automatically draw the UI components that are available in the parent ASPX
page onto its own ASPX page. This is because the actual ASPX page is not
inherited.

You are right; it would be very handy if it were possible. I think MS better
start working on that in .NET 2

Cheers
Terrence

-----Original Message-----
From: wrox@d... [mailto:wrox@d...] 
Sent: Wednesday, October 23, 2002 12:24 AM
To: ASP.NET
Subject: [aspx] RE: Web form Inheritance


Hi,

My understanding is that Visual Inheritance is not supported in Web
Forms only supported for Windows Forms - if it is possible I would like
to know how as it would be very handy!

Cheers

David 

-----Original Message-----
From: Terrence Joubert [mailto:Terrence@v...] 
Sent: 22 October 2002 09:03
To: ASP.NET
Subject: [aspx] Web form Inheritance

Hi,
 
I am experiencing some problems with Web Form Inheritance. I have one
web
form object called GenericEditor. This web form provides basic services.
It
has two hidden fields and two buttons that will be present on the child
web
forms. I start implementing one child web form called ChildEditor. To
inherit from GenericEditor, I added an Inherits GenericEditor statement
after the class declaration of the code behind class. My problem is that
all
the properties and methods of GenericEditor are accessible from within
ChildEditor (in the code behind class), but neither the Visual Studio
web
form designer nor my browser is visually showing  the two buttons and
the
two hidden fields when ChildEditor loads. 
 
Is there something that I missed somewhere, or is this the actual Web
Form
inheritance architecture of .NET? 
 
Terrence J. Joubert
Software Engineer
VCS, PO BOX 1000
Victoria, Mahe


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---
Message #4 by johnc@w... on Wed, 23 Oct 2002 14:14:03
You're correct in that Visual Inheritance is only supported in Windows 
Forms, however there are a few work arounds to get something similar in 
ASP.NET. I've recently commissioned an ASPToday article on this subject, 
which will be published on 5th November - "Visual Inheritance with 
ASP.NET" by Craig Bowes.

Cheers,

John

John Richard Chapman
Chief Technical Editor
ASPToday
Wrox Press Ltd.
john@a...
http://www.asptoday.com/
http://www.csharptoday.com/ 


> 
Hi,

My understanding is that Visual Inheritance is not supported in Web
Forms only supported for Windows Forms - if it is possible I would like
to know how as it would be very handy!

Cheers

David 

-----Original Message-----
From: Terrence Joubert [mailto:Terrence@v...] 
Sent: 22 October 2002 09:03
To: ASP.NET
Subject: [aspx] Web form Inheritance

Hi,
 
I am experiencing some problems with Web Form Inheritance. I have one
web
form object called GenericEditor. This web form provides basic services.
It
has two hidden fields and two buttons that will be present on the child
web
forms. I start implementing one child web form called ChildEditor. To
inherit from GenericEditor, I added an Inherits GenericEditor statement
after the class declaration of the code behind class. My problem is that
all
the properties and methods of GenericEditor are accessible from within
ChildEditor (in the code behind class), but neither the Visual Studio
web
form designer nor my browser is visually showing  the two buttons and
the
two hidden fields when ChildEditor loads. 
 
Is there something that I missed somewhere, or is this the actual Web
Form
inheritance architecture of .NET? 
 
Terrence J. Joubert
Software Engineer
VCS, PO BOX 1000
Victoria, Mahe


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---


  Return to Index