I have a file, Tools.cs, with a class in it, Tools. I use another file, Default.cs, as the codebehind to my Default.aspx. I've tried all of the below to use the tools file in the default file, but nothing works. How can I do this?
using Tools;
using Global.Tools; //Added namespace Global to my tools class
using Global;
EDIT: To be more throrough, here's some code.
//Tools.cs
namespace Global{
public sealed class Tools{
//Tools stuff
}
}
//Default.cs
using System;
using System.Web.UI;
using Global;
namespace Home{
public class Default :Page{
//Page stuff
}
}
and I get the error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'Global' could not be found (are you missing a using directive or an assembly reference?)