DataBinder.EVal problem with nested Collections

  • Thread starter Thread starter Shawn Zavoda
  • Start date Start date
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
 
Please ignore this post - database guy had placed the wrong info in
the wrong properties. I should have known to check that personally
first....

Shawn
 
Back
Top