|
 |
aspx_beginners thread: Using classes in aspx
Message #1 by "Ryan Lockhart" <rlockhart@p...> on Mon, 18 Mar 2002 18:32:25
|
|
I want to use a C# class for my data layer (Data.cs). So I created a
Namespace DataLayer which has my data access logic in it and I eventually
return a dataview. In my aspx page I try to <%@ Import Namespace
= "DataLayer" %> it errors out with this error:
CS0246: The type or namespace name 'DataLayer' could not be found (are you
missing a using directive or an assembly reference?)
What else do I need to do to be able to use this class?
Message #2 by "Lauser, John" <LauserJ@h...> on Wed, 20 Mar 2002 09:54:17 -0500
|
|
make sure you are compiling the dll to your wwwroot/bin directory. .net
compiles by default to the projects own /bin directory
-----Original Message-----
From: Ryan Lockhart [mailto:rlockhart@p...]
Sent: Monday, March 18, 2002 13:32
To: aspx_beginners
Subject: [aspx_beginners] Using classes in aspx
I want to use a C# class for my data layer (Data.cs). So I created a
Namespace DataLayer which has my data access logic in it and I
eventually
return a dataview. In my aspx page I try to <%@ Import Namespace
=3D "DataLayer" %> it errors out with this error:
CS0246: The type or namespace name 'DataLayer' could not be found (are
you
missing a using directive or an assembly reference?)
What else do I need to do to be able to use this class?
|
|
 |