473,498 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataBinder.EVal problem with nested Collections

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
Nov 18 '05 #1
1 1223
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

sh***@adova.com (Shawn Zavoda) wrote in message news:<a0**************************@posting.google. com>...
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

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3802
by: Michelle Keys | last post by:
Subject: DataBinder.Eval Error! Server Error in '/MSPOS' Application. ------------------------------------------------------------------------ -------- DataBinder.Eval:...
5
724
by: bg | last post by:
Hi! How do I check if "date" exists before using that code? I've built a RSSreader and sometimes there's a date in it and sometimes not. How can I check if it exists to avoid crash...
4
2476
by: Søren Lund | last post by:
Hello, I am trying to bind a DataGrid with some data from a DataSet which contains fields in the form "group.fieldname". I am certain that my data source contains the field but I cannot get my...
1
2219
by: Mike Lerch | last post by:
Pretty much, TSIA, but I'll expand a bit: I'm still trying to get my head around the n-tier approach to web design. It seems to me that when you use DataBinder.Eval in the ASPX that your tiers...
3
2247
by: Eric Newton | last post by:
Given databinding an array of System.Version types: Given that "SomeObject" type has a Version property: public class SomeObject { public Version Version { get; } public string Description {...
1
1989
by: Nathan Sokalski | last post by:
I want to make an email link using databinding. I am able to get and display the email address from the database it is stored in using databinding as follows: <asp:HyperLink id="lnkEmail1"...
1
1138
by: DBLWizard | last post by:
Howdy All, I was reading an older posting about the performance hit of DataBinder.Eval. ...
3
2540
by: Mark Jones | last post by:
I am quite new to ASP and .Net development and I am building a web-based multiple choice exam application. The web page displays the questions using a Repeater control and the answers are nested...
4
7324
by: CharlesA | last post by:
a general question... I'm a bit mystified by Databinder.eval(object, Colname, ) if controls can be bound to their individual data sources within the load event of the page... why would we ever...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.