I have the code:
<asp:SqlDataSource runat="server" ID="Reunion_Display" ConnectionString="<%$ ConnectionStrings:SqlServer %>" SelectCommand ="SELECT Graduating_Class_ID, Reunion_Date, Reunion_Details, Contact_Name, Contact_Email, Contact_URL, Contact_Phone, Class_Notes FROM Reunion_Display">
</asp:SqlDataSource>
<asp:Repeater ID="ReunionDis" runat="server" DataSourceID="Reunion_Display">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><h2>Class of <%#Container.DataItem("Graduating_Class_ID")%></h2>
</td>
</tr>
<tr>
<td><div style="Padding-left: 10px"><i><%#Container.DataItem("Class_Notes")%></i></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 10px"><b><%#Container.DataItem("Reunion_Date")%></b></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px"><%#Container.DataItem("Reunion_Details")%></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px">Contact <%#Container.DataItem("Contact_Name")%> for more info.</div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px"><a href="mailto:<%#Container.DataItem("Contact_Email")%>"><%#Container.DataItem("Contact_Email")%></a></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px"><a href="<%#Container.DataItem("Contact_URL")%>"><%#Container.DataItem("Contact_URL")%></a></div>
</td>
</tr>
<tr>
<td><%#Container.DataItem("Contact_Phone")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table> >
</FooterTemplate>
</asp:Repeater>
In the view, there are multiple records with the same content.
ex) Graduating_Class_ID Class_Notes
1948 7/8/2006
1948 Marriott at 5p.m.
How do I make it so only on of the Graduating_Glass_ID numbers shows up?
What Shows:
1948
7/8/2006
1948
Marriott at 5p.m.
Needs to Show:
1948
7/8/2006
Marriott at 5p.m.
<asp:SqlDataSource runat="server" ID="Reunion_Display" ConnectionString="<%$ ConnectionStrings:SqlServer %>" SelectCommand ="SELECT Graduating_Class_ID, Reunion_Date, Reunion_Details, Contact_Name, Contact_Email, Contact_URL, Contact_Phone, Class_Notes FROM Reunion_Display">
</asp:SqlDataSource>
<asp:Repeater ID="ReunionDis" runat="server" DataSourceID="Reunion_Display">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><h2>Class of <%#Container.DataItem("Graduating_Class_ID")%></h2>
</td>
</tr>
<tr>
<td><div style="Padding-left: 10px"><i><%#Container.DataItem("Class_Notes")%></i></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 10px"><b><%#Container.DataItem("Reunion_Date")%></b></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px"><%#Container.DataItem("Reunion_Details")%></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px">Contact <%#Container.DataItem("Contact_Name")%> for more info.</div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px"><a href="mailto:<%#Container.DataItem("Contact_Email")%>"><%#Container.DataItem("Contact_Email")%></a></div>
</td>
</tr>
<tr>
<td><div style="Padding-left: 20px"><a href="<%#Container.DataItem("Contact_URL")%>"><%#Container.DataItem("Contact_URL")%></a></div>
</td>
</tr>
<tr>
<td><%#Container.DataItem("Contact_Phone")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table> >
</FooterTemplate>
</asp:Repeater>
In the view, there are multiple records with the same content.
ex) Graduating_Class_ID Class_Notes
1948 7/8/2006
1948 Marriott at 5p.m.
How do I make it so only on of the Graduating_Glass_ID numbers shows up?
What Shows:
1948
7/8/2006
1948
Marriott at 5p.m.
Needs to Show:
1948
7/8/2006
Marriott at 5p.m.