Hi all,
I am trying to import a custom class into a .aspx file. These files are not done in VS.net (just a text editor). The .aspx file has no code-behind. Its all in-line. But I want to import a class that I created. The class is called Monitor.cs with a namespace of SiteMonitor. To make is simple, this class is in the same directory as the .aspx file. When I try to import Monitor.cs, I get the following error:
Namespace or type 'Monitor' for the Imports 'SiteMonitor.Monitor' cannot be found.
This is done on a hosting provider. Does anyone have any ideas on how I can import this, or what I have to do so I can create an object of the class?
I am not trying to inherit from the class. I just want to create an object so I can access methods.
Mike
I am trying to import a custom class into a .aspx file. These files are not done in VS.net (just a text editor). The .aspx file has no code-behind. Its all in-line. But I want to import a class that I created. The class is called Monitor.cs with a namespace of SiteMonitor. To make is simple, this class is in the same directory as the .aspx file. When I try to import Monitor.cs, I get the following error:
Namespace or type 'Monitor' for the Imports 'SiteMonitor.Monitor' cannot be found.
This is done on a hosting provider. Does anyone have any ideas on how I can import this, or what I have to do so I can create an object of the class?
I am not trying to inherit from the class. I just want to create an object so I can access methods.
Mike