S
Shawn Zavoda
I have a collection similar to the following:
public class Recipient
{
public Recipient()
{
}
private string sName="";
private string sTitle = "";
public string Title
{
get {return sTitle;}
set {sTitle = value;}
}
public string Name
{
get {return sName;}
set {sName = value;}
}
}
public class OrderItem
{
public OrderItem()
{
}
private string sTitle = "";
private Recipient oRecipient;
public string Title
{
get {return sTitle;}
set {sTitle = value;}
}
public Recipient Recipient
{
get {return oRecipient;}
set {oRecipient = value;}
}
}
When I use the statement:
<%# DataBinder.Eval (Container, "DataItem.Recipient.Title") %>
I end up with the Title of the OrderItem class - all other properties
are as expected.
Any ideas?
Shawn
public class Recipient
{
public Recipient()
{
}
private string sName="";
private string sTitle = "";
public string Title
{
get {return sTitle;}
set {sTitle = value;}
}
public string Name
{
get {return sName;}
set {sName = value;}
}
}
public class OrderItem
{
public OrderItem()
{
}
private string sTitle = "";
private Recipient oRecipient;
public string Title
{
get {return sTitle;}
set {sTitle = value;}
}
public Recipient Recipient
{
get {return oRecipient;}
set {oRecipient = value;}
}
}
When I use the statement:
<%# DataBinder.Eval (Container, "DataItem.Recipient.Title") %>
I end up with the Title of the OrderItem class - all other properties
are as expected.
Any ideas?
Shawn