function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
scottskiblackscottskiblack 

sObject to drop down list

I am using a function to get Contacts and return an object (sObject).
I have a drop downlist on the page and I set the dataSource to this function which returns the sObjects.  The drop down list is populated with each value being sforce.Contact.  (sforce is the name of my web reference obviously).

Do I have to iterate thru the sObjects and add them to the drop down list or is it possible to use the objects as the data source directly?  I am working in an ASP.NET website using VB.NET.

Thanks!

Message Edited by scottskiblack on 04-24-2007 10:21 AM

SuperfellSuperfell
If you're on .NET 2.0, then i believe you should be able to data bind directly to the array of objects, no need to go through an intermediate dataTable object.