I have created a MasterPage called MyMasterPage.
public partial class MyMasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
I have also created a class called Class1 in app_code:
public class Class1
{
public Class1()
{
MyMasterPage m;
}
}
In Class1 I would like to reference MyMasterPage but I get a compiler warning:
The type or namespace name 'MyMasterPage' could not be found (are you missing a using directive or an assembly reference?)
What code do I need to add to get this to work?
The classes are in folders as follows:
alt text http://www.yart.com.au/stackoverflow/masterclass.png