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! 3 3021
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!
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!
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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:
|
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() {
|
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....
|
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....
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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...
|
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...
| |