Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 21, 2006 08:58 PM by mrmatrix
May 17, 2006 10:04 AM|LINK
$conn = new DBConnect();?>
May 17, 2006 01:26 PM|LINK
It's actually very easy in .NET. For example, if you create a .cs file in the App_Code directory, you can use the code within it with no effort. Other than that, you might need to include a namespace.
That's about it.
May 19, 2006 07:01 AM|LINK
May 19, 2006 07:29 AM|LINK
If you're using inline code, then you need to import namespaces as follows instead of a using statement.
<%@ Import Namespace="" %>
As for the error message, that means it's unable to find the namespace. Did you include the assembly that that namespace resides in in the bin directory?
May 19, 2006 12:13 PM|LINK
May 19, 2006 01:31 PM|LINK
Don't know where the problem lies exactly. I just copied your code verbatum into a class inside of App_Code and could access the code.
May 19, 2006 02:13 PM|LINK
May 19, 2006 03:13 PM|LINK
May 21, 2006 08:58 PM|LINK