yaki pini

yaki pini

  • NA
  • 1
  • 1.3k

ASP C# can't use another class

Dec 25 2012 9:21 AM

Hi,
I'm using c# asp with Visual studio 2010 professional
I've created web site that works fine. Then I've added into APP_Code folder new Class names Globals.cs and tried to call it in order to use it like this:
In the file: Login.aspx.cs I've added:
using ParkingLabelsManager;
Then
public partial class LogIn : System.Web.UI.Page
{
    private Globals mGlobals = new Globals();
If I runs it from the compiler (pressing F5) it run Okay.
But when I refers to C:\inetput\blablablas\logIn.aspx I'm getting the error:
The type or namespace name 'Globals' could not be found
Anu help will be very appriciate!!!
Best regards,
Yaacov

Answers (1)