Tuesday, March 23, 2010

Can't access App_Code class in Code Behind file

I had created a struct in file in the App_Code. But I can't able to access the namespace.
 
namespace StructTest
{
public struct Student
{
int id;
int zipcode;
double salary;
}
}

Solution
Right click on the file and select properties then change the Build Action to Compile.

1 comment:

sebichondo said...

Thanks u just saved me hours of debugging