Ralphh
April 22nd, 2003, 05:14 AM
Is there a way of dynamically displaying data through a repeater in my ascx page?? The problem is that when displaying the data through the repeater, you have to specify the name of the dataitem, ie "description" or "vehicleID".
In my page to display the details, I might not be getting "vehicleID" back every time, as a different record set might be built up, which will exclude "vehicleID".
How do I display the values without having to specify Container.DataItem("vehicleID") ??
Is there a way to build a for loop or a do while loop to display whatever data is being passed into the repeater, something like:
for each DataItem in Container do
.....display info
next
In my page to display the details, I might not be getting "vehicleID" back every time, as a different record set might be built up, which will exclude "vehicleID".
How do I display the values without having to specify Container.DataItem("vehicleID") ??
Is there a way to build a for loop or a do while loop to display whatever data is being passed into the repeater, something like:
for each DataItem in Container do
.....display info
next