I am not sure of the best way to describe my question, as the title doesn't even make sense to me!
What I am doing is calling a WCF Service and I get an Object back, within this object are a selection of elements and some arrays.
So the object would be something like...(I would be passed the Person)
public class Person
{
string firstName;
string lastName;
Address[] addressDetails;
}
public class Address
{
string address1;
string address2;
string postcode;
}
So then on my page, I would like to display not only firstName and lastName. But the details of the address. If you can imagine this page to be a profile view. So all the fields in a list and the ability to edit them.
Currently I can access any element that is "top level" i.e. not within an array. I do that on the ascx page using the following code within a Telerik RadListView...
<tr>
<td>
<asp:Label ID="firstNameLabel" runat="server"
AssociatedControlID="firstNameTextBox" Text="firstName"></asp:Label>
</td>
<td>
<asp:TextBox ID="firstNameTextBox" runat="server" CssClass="rlvInput"
Text='<%# Bind("firstName") %>' />
</td>
</tr>
So I guess what I am asking is; how do I display 'address1' on the page.
Hope somebody can help me out! Thanks