Using classes in Web Matrix

G

Guest

I learned asp.net on VS and now have to create a Web Matrix project. I have
a c# class located in a different folder in the directory. I want to
reference that in the script block of my default page. I have the following
at the top of the page:

<%@ Page Language="C#" %>
<%@ Import Namespace="WTR.ScriptManager.Data" %>

When I try to create an object from this class I get the error:

CS0246: The type or namespace name 'WTR' could not be found (are you missing
a using directive or an assembly reference?)


I think I might have to reference the assembly, can someone explain this?

Thanks,

Nathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top