I find myself Syntax Challenged.
An array resides on a MasterPage.
I want to use the values of the array on an aspx page which is a content
page of the MasterPage.
I can not find the syntax that works.
For a single value (non-array) the following will work.
On the MasterPage:
public String CompanyName
{
get { return (String) ViewState["companyName"]; }
set { ViewState["companyName"] = value; }
}
void Page_Init(Object sender, EventArgs e)
{
this.CompanyName = "JimBo";
}On the ContentPage:<%@ MasterType virtualpath="~/Master1.master" %>void
Page_Load(Object sender, EventArgs e)
{
Label1.Text = Master.CompanyName;
}I need the equivalent code for a array. Code examples would be
appreciated.Thanks,Jim