I'm wanting to reference page controls from a cs file in the app_code
directory. I'm getting a _Defaullt could not be found, missing
directive or assembly reference error. Very simple example below.
Default.aspx.cs :
using System;
using System.Web.UI;
public partial class _Default : Page
{
protected void Page_Load(objec t sender, EventArgs e)
{
}
protected void Button1_Click(o bject sender, EventArgs e)
{
Class1.UpdateBu ttonText(this);
}
}
----------------
Class1.cs
using System;
public class Class1
{
public Class1()
{
}
public static void UpdateButtonTex t(_Default global_Default)
{
}
}
Peter Kellner
http://peterkellner.net