the index page I use is index.aspx and the c# class is called index.aspx.cs.
In the app_code folder I have another folder called "database" and within that folder is a .cs file called Query.cs
Now in the index.aspx.cs file I want to call the Query.cs class with the following code:
private Query query = new Query();
but it can't find Query.
What can I do?
App_Codedirectory is special in ASP.NET and compiled at runtime, not design time. Program code contained within is only accessible from "code file" classes and.aspxfiles, not "code-behind" files