M
Mo
Hi,
I am not sure if this is the right group but I have a web control
within a page and I am trying to access a method from the control. My
master page is set as :
public partial class _Default : System.Web.UI.Page
{
private string Cart = "";
public string GetCart
{
get { return Cart;}
set { Cart = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
in the control page I am trying to access the GetCart method by using
((Default)this.Page).GetCart = "Somrthinghere";
I am getting the error:
Type or namespace name 'Default' could not be found (are you missing a
using directive or an assembly
reference?) C:\Projects\AtlasWebSite1\WebUserControl.ascx.cs
What am I doing wrong?
I am not sure if this is the right group but I have a web control
within a page and I am trying to access a method from the control. My
master page is set as :
public partial class _Default : System.Web.UI.Page
{
private string Cart = "";
public string GetCart
{
get { return Cart;}
set { Cart = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
in the control page I am trying to access the GetCart method by using
((Default)this.Page).GetCart = "Somrthinghere";
I am getting the error:
Type or namespace name 'Default' could not be found (are you missing a
using directive or an assembly
reference?) C:\Projects\AtlasWebSite1\WebUserControl.ascx.cs
What am I doing wrong?