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

Multiple Classes and Namespace

I know that multiple class inheritance is not possible in VB.Net I also
know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in
my code. Now, for the question at hand. Lets say I need my project to
inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that
happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However,
using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that?
Thanks in advance!

Nov 21 '05 #1
3 3020
Elroy,

I was making an answer while I got the idea that you are trying to build
something strange.

What are you trying to build, a webpage that acts as a webservice or
something.

You can not build a horse with a carengine inside by letting a horse
inheriting from cars.

Just my thought

Cor
"Elroyskimms" <el*********@yahoo.com>
..
I know that multiple class inheritance is not possible in VB.Net I also
know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in
my code. Now, for the question at hand. Lets say I need my project to
inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that
happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However,
using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that?
Thanks in advance!

Nov 21 '05 #2
Elroy,

I was making an answer while I got the idea that you are trying to build
something strange.

What are you trying to build, a webpage that acts as a webservice or
something.

You can not build a horse with a carengine inside by letting a horse
inheriting from cars.

Just my thought

Cor
"Elroyskimms" <el*********@yahoo.com>
..
I know that multiple class inheritance is not possible in VB.Net I also
know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in
my code. Now, for the question at hand. Lets say I need my project to
inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that
happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However,
using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that?
Thanks in advance!

Nov 21 '05 #3
Cor,

I apologize for the delayed response... but yes, I am trying to build
something strange (I never pick the easy ones). Here is the concept:

I have a Web Service, it works very well. Multiple servers connect to
the Web Service, it performs its "special magic" as expected and I am
very happy with the result. Enter the customer who wants to make a
change to the system...

When the Web Service is finished, I need it to pass along an XML file
using HTTP GET/POST and then capture an XML response from the GET/POST
operation. I can make the Web Service GEt/POST without a problem, but
the XMLTextReader I use to capture the response is part of the
System.Web.UI.Page class, and I cannot inherit that class within my Web
Service. Is there an XMLTextReader equivalent for a Web Service? Sample
code? Thanks for your help!

-Elroyskimms
Cor Ligthert wrote:
Elroy,

I was making an answer while I got the idea that you are trying to build something strange.

What are you trying to build, a webpage that acts as a webservice or
something.

You can not build a horse with a carengine inside by letting a horse
inheriting from cars.

Just my thought

Cor
"Elroyskimms" <el*********@yahoo.com>
.
I know that multiple class inheritance is not possible in VB.Net I also know that I can:

inherit class a

and in class a:

inherit class b

and in class b:

inherit System.Web.UI.Page

and so on and so forth, thus allowing me to effectively "inherit"
classes a, b, c, and system.windows.forms.form by inheriting class a in my code. Now, for the question at hand. Lets say I need my project to inherit from a system namespace, using the following:

Inherits System.Web.Services.WebService

And I also need to inherit classes a, b, and c... How can I make that happen? It seems like I can import an unlimited amount of custom
classes by calling them via the hierarhy I described above. However, using this method, I can only ultimately inherit from one system
namespace in the entire project, and I have a project that needs to
inherit both the WebService and WebPage classes... how can I do that? Thanks in advance!


Nov 21 '05 #4

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

Similar topics

3
by: Tom Kelleher | last post by:
Question: Can namespaces be shared by several projects within a solution, if those projects use different languages? We wrote some db code in C#, and some biz logic in VB.NET. We brought both...
0
by: Elroyskimms | last post by:
I know that multiple class inheritance is not possible in VB.Net I also know that I can: inherit class a and in class a: inherit class b and in class b:
0
by: Peter Theill | last post by:
I have these two web services: namespace WebService1 { public class Service1 : System.Web.Services.WebService { public Service1() { } public string HelloWorld() {
0
by: yossis | last post by:
I have a .Net solution that contains multiple projects of both Managed C++ and C#. There are references in one Managed C++ project's classes to classes in another Managed C++ project. i.e....
4
by: yossis | last post by:
I have a .Net solution that contains multiple projects of both Managed C++ and C#. There are references in one Managed C++ project's classes to classes in another Managed C++ project. i.e....
6
by: Orgun | last post by:
Hi, I sent this message to the moderated c++ group too but it is waiting for moderator approval and I wanted to send here too. I am new to Design Patterns. I want to write a simple...
1
by: Ankur Goenka | last post by:
Hi, I am trying to include two proxy classes (from two different web services say Namespace.Service1 and Namespace.Service2) in a project (C# Class lib). These webservice internally use (as...
0
by: msustrick | last post by:
I'm working on a large asp.net maintenance application that has numerous utilities. There can be multiple files associated with a particular utility. The Namespace standard is...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.