I have a repeater control that is connected to a sqldatasource file and is displaying records properly.
However, the datasource structure keeps changing so sometimes it has 2 columns, sometimes 3 columns
Column names are always named  1, 2, 3 etc
So I wrote some prevent error code so even there is no column 3, it will not goto error
My repeater code is as follows
 <asp:Repeater ID="Repeater4" runat="server"             DataSourceID="SqlDataSource6"><ItemTemplate> <%#IIf(IsDBNull(DataBinder.Eval(Container.DataItem, "1")) OrElse String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, "1")), "", DataBinder.Eval(Container.DataItem, "1"))%>
<%#IIf(IsDBNull(DataBinder.Eval(Container.DataItem, "2")) OrElse String.IsNullOrEmpty(DataBinder.Eval(Container.DataItem, &qu ...

Go to the complete details ...