I have a repeater in my aspx page. The datasource for this will change for different types of call hence I cannot do
<ItemTemplate>
<tr >
<td bgcolor="" valign="top">
<%#DataBinder.Eval(Container.DataItem, "Id")%>
</td>
…
as the dataItem will be different. Which is the best way to do it server side?
Thanks,
Personally, the best way will be create interface and write adapters for every type. In repeater you gonna be work only with this interface.