DataBinder.EVal problem with nested Collections

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
 
S

Shawn Zavoda

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top