P
Phil Barber
I have two web pages in a VS 2005 project. the first page has a struct
defined and used in the partial class:
public partial class InterIndex : System.Web.UI.Page
{
public struct TXMLData
{
public int DataID;
public string FileName;
public string FilePath;
public string Category;
public string DestLinkText;
public string DestIcon;
}
..........
in the second web page I want to use this same structure; it has code like
this:
public partial class InterIndex : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
....
for (int i = d;i>=0;i--)
{
TXMLData nData= (TXMLData)NewsData;
UpdatesLinksLabel.Text+=nData.FileName+" - ";
}
........
}
}
the files have the same partial class (InterIndex) but the second page gives
me errors on missing namespace or directive for the TXMLData structure. if
they share the partial class why can't the structure definition be seen?
thanks
Phil barber
defined and used in the partial class:
public partial class InterIndex : System.Web.UI.Page
{
public struct TXMLData
{
public int DataID;
public string FileName;
public string FilePath;
public string Category;
public string DestLinkText;
public string DestIcon;
}
..........
in the second web page I want to use this same structure; it has code like
this:
public partial class InterIndex : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
....
for (int i = d;i>=0;i--)
{
TXMLData nData= (TXMLData)NewsData;
UpdatesLinksLabel.Text+=nData.FileName+" - ";
}
........
}
}
the files have the same partial class (InterIndex) but the second page gives
me errors on missing namespace or directive for the TXMLData structure. if
they share the partial class why can't the structure definition be seen?
thanks
Phil barber