Re: How do I reference my new class?
- From: needin4mation@xxxxxxxxx
- Date: 15 Sep 2006 11:18:45 -0700
I suppose I can take the code out of my class and put it in each file
that needs it, but that is not the correct way to proceed, I am sure.
needin4mation@xxxxxxxxx wrote:
I have a .aspx file and it's src. I also have a third file, a class
that the src references. Everything is in the same directory/folder.
Everything has the same namespace. How do I reference the class in my
c# .src file? I don't believe this is an ASP.NET question, but a OOP
C# question, thus my post here.
I have searched and I thought it was with:
using FilterSQL; //the name of my class
using reports.FilterSQL; //name of namespace with class.
...
then on down I can instantiate it with
FilterSQL myFilter = new FilterSQL("");
I need to say that it was working until I took Visual Studio out of the
picture. I am trying to use notepad. And what happened was that I
took out my "codebehind" directive and used "src." Now, it can't find
the class.
Thank you for any help. I think not using VIsual Studio here might
actually be a good thing. I might learn what's going on.
.
- Follow-Ups:
- Re: How do I reference my new class?
- From: Otis Mukinfus
- Re: How do I reference my new class?
- From: Daniel
- Re: How do I reference my new class?
- References:
- How do I reference my new class?
- From: needin4mation
- How do I reference my new class?
- Prev by Date: Error installing DLL component in system32
- Next by Date: Re: CoSetProxyBlanket equivalent
- Previous by thread: Re: How do I reference my new class?
- Next by thread: Re: How do I reference my new class?
- Index(es):
Relevant Pages
|