G
Struggling a bit with some newbie questions regarding base classes,
header files and the like in ASP.NET/C#.
(Using VS2005, C# and ASP.NET 2, and new to them all...)
I'm going to be creating about 200 web services that will share some
similar features. I want to abstract out this common functionality
into a baseclass and inherit from that. So far, so good. If I put the
base class in the App_Code directory for a single web service then all
is fine. But I want to use the same base class in my other web
services.
My questions
1. Can I use a base class that is accessible to all my web services?
If I can then where do I put it and how do I refer to it in VS?
2. MUST my baseclass stuff go into a pre-compiled DLL?
3. Can I do compile time '#includes' or equivalent?
Thanks...
(Please reply to the group as the email address I use to post gets too
much spam...)
Steve
header files and the like in ASP.NET/C#.
(Using VS2005, C# and ASP.NET 2, and new to them all...)
I'm going to be creating about 200 web services that will share some
similar features. I want to abstract out this common functionality
into a baseclass and inherit from that. So far, so good. If I put the
base class in the App_Code directory for a single web service then all
is fine. But I want to use the same base class in my other web
services.
My questions
1. Can I use a base class that is accessible to all my web services?
If I can then where do I put it and how do I refer to it in VS?
2. MUST my baseclass stuff go into a pre-compiled DLL?
3. Can I do compile time '#includes' or equivalent?
Thanks...
(Please reply to the group as the email address I use to post gets too
much spam...)
Steve