473,469 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Inheritance over two 'generations' plus CodeBehind

I have a Parent class called Plant. Compiled as dll.
Its child is called Tree. As Tree.vb.
The grandchild is to be a web page called Birch.aspx (inherits Tree).
Since the grandchild needs to inherit from System.Web.UI.Page, I made
that class its Great-Grandparent (or Parent to Plant).

Now my problem: I get an Error "BC30002 Type 'Plant' is not defined."
on my line "Inherits Plant" in file Tree.vb (when I call Birch.aspx in
my browser).
If I leave out 'Inherits Plant' and put in 'Inherits
System.Web.UI.Page', it works (except that the Plant's functionality
is lost, obviously!)
Plant.dll is in ../BIN. Even Tree compiles to a dll withour errors...

I am sure that's quite simple to solve (if you know how...!)?! I'd
greatly appreciate your help!!

Urs
Nov 18 '05 #1
1 895
It looks like there is either no reference or that you should specify the
namespace for the Plant class (the class browser may help ?)...
--

"oerz" <oe**@bluewin.ch> a écrit dans le message de
news:67**************************@posting.google.c om...
I have a Parent class called Plant. Compiled as dll.
Its child is called Tree. As Tree.vb.
The grandchild is to be a web page called Birch.aspx (inherits Tree).
Since the grandchild needs to inherit from System.Web.UI.Page, I made
that class its Great-Grandparent (or Parent to Plant).

Now my problem: I get an Error "BC30002 Type 'Plant' is not defined."
on my line "Inherits Plant" in file Tree.vb (when I call Birch.aspx in
my browser).
If I leave out 'Inherits Plant' and put in 'Inherits
System.Web.UI.Page', it works (except that the Plant's functionality
is lost, obviously!)
Plant.dll is in ../BIN. Even Tree compiles to a dll withour errors...

I am sure that's quite simple to solve (if you know how...!)?! I'd
greatly appreciate your help!!

Urs


Nov 18 '05 #2

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

Similar topics

14
by: Aleksandr Rulev | last post by:
#include <iostream> class Foo{ public: Foo(){std::cout<<"Foo ";}; }; class Bar:Foo{ public: Bar(){std::cout<<"Bar ";};
19
by: Mike Tyka | last post by:
Hello community, i'm fairly new to using the STL but i've been experimenting a bit with it. I tried to derive a new class say MyString from string like so: class MyString: public string{...
14
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
3
by: Binod Nair | last post by:
Hi All, Can somebody tell me what I am doing wrong. I have a Base Abstract Class Public MustInherit Class BaseRequestHandler : Inherits System.Web.UI.Page Protected Overridable Sub...
1
by: Michael | last post by:
Hello, I'm trying to implement sample I found on page templates, so I do not have to maintain "<html><head>..." on all my documents. But don't let that confuse you, this is an inheritance...
5
by: Invalidlastname | last post by:
Hi, I just read the pattern "Design and Implementation Guidelines for Web Clients" from MSDN. Here is my question. In chapter 3,...
15
by: scorpion53061 | last post by:
I am just now really starting to get into inheritance - controls, datasets, views all that stuff and I am seeing the enormous savings in performance and even watching the exe file size go down...
47
by: Mark | last post by:
why doesn't .NET support multiple inheritance? I think it's so silly! Cheers, Mark
10
by: janisgs | last post by:
Hi Is there a way to seperate code of interface in windows applications for various design purposes? Just like it can be done in ASP.NET, one code can be inherited in different skins with...
2
by: David | last post by:
Hi all, I am trying to write a user control. On this control, I just have linkbuttons. The codebehind has to inherit from my baseclass which inherits from usercontrol. e.g.
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
1
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...
0
tracyyun
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...
0
agi2029
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.