G
Guest
I'd like to extend some of my Asp.net pages by using Partial Classes.
Example ASP.Net Page:
public partial class Admin_Customer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Data_List();
}
}
I'd like to add (in another file):
public partial class Admin_Customer
{
protected void Data_List()
{ . . code . . .}
}
Each time I complie the page cannot see the Data_List() method ?
Error Message "The name Data_List does not exist in the current contact".
I've been scouring the web all morning with no sucess, tried a few things
like putting them in the same namespace but that does not seem to help. Also
given them the same inherit statement.
Any suggestions Please ?
Example ASP.Net Page:
public partial class Admin_Customer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Data_List();
}
}
I'd like to add (in another file):
public partial class Admin_Customer
{
protected void Data_List()
{ . . code . . .}
}
Each time I complie the page cannot see the Data_List() method ?
Error Message "The name Data_List does not exist in the current contact".
I've been scouring the web all morning with no sucess, tried a few things
like putting them in the same namespace but that does not seem to help. Also
given them the same inherit statement.
Any suggestions Please ?