Databinding to arrays of custom objects returned from a webservice

C

Chris McKenzie

I'd like to return an array of custom classes from a webservice (which I have working), but I can't figure out how to databind to this array on the ASP .NET Client side.

Suppose I have a class Person with the properties LastName, MiddleName, and FirstName. I return an array of 5 Persons to the calling ASP .NET application. Now I want to display each Person's name in a DropDownList control. How could I do this? I've struggled with databinding expressions and capturing the DropDownList.Databind event, but to no avail.

Thanks,
Chris
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top