Re: How do I reference my new class?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.

.



Relevant Pages

  • Re: How do I reference my new class?
    ... that the src references. ... Everything is in the same directory/folder. ... Everything has the same namespace. ... I need to say that it was working until I took Visual Studio out of the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How do I reference my new class?
    ... The codebehind is needed to tell the asp.net page where its code fine is, ... that the src references. ... Everything has the same namespace. ... I need to say that it was working until I took Visual Studio out of the ...
    (microsoft.public.dotnet.languages.csharp)
  • How do I reference my new class?
    ... I have a .aspx file and it's src. ... that the src references. ... Everything has the same namespace. ... I need to say that it was working until I took Visual Studio out of the ...
    (microsoft.public.dotnet.languages.csharp)
  • Converting VC++ 6.0 executable code to .Net DLL
    ... environment (Visual Studio 2005). ... Anyhow, the environment generated a main class for me, shown below, as ... belong to any namespace, as is just a large collection of classes developed ... What would I need to do to export my C++ interfaces? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Error messages due to conversion from older ASP.Net
    ... C# and Visual Studio 5. ... holding me back from loading the website changes. ... Error 1 A namespace does not directly contain members such as fields or ... Error 2 Expected class, delegate, enum, interface, or struct ...line 28 ...
    (microsoft.public.dotnet.languages.csharp)