Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Supress row repeater 1

Status
Not open for further replies.

shmilyca

Programmer
Apr 30, 2006
63
US
Hi Guys,
This worke fine except I get "Front" & "Back" row as last row. Is there anyway to supress it?

Thank you


<asp:Repeater ID="Repeater1" runat="server" DataSourceID="AccessDataSource1" >
<HeaderTemplate>
<table border=<%=iBorder %> width=60%>
<tr>
<td style="color: #ffffff" align =center><span style="font-size:xx-small; font-family:Small Fonts"><B>Front</B></span></td>
<td style="color: #ffffff"></td>
<td style="color: #ffffff" align =center><span style="font-size:xx-small; font-family:Small Fonts"><B>Back</B></span></td>
<td style="color: #ffffff"></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td height =175 width=150>
<asp:ImageField DataImageUrlField="Imagename" >
<ItemStyle Height="50px" Width="50px" />
<ControlStyle Height="50px" Width="50px" />
</asp:ImageField>
</td>


<td><span style="color: #ffffff"> <%#DataBinder.Eval(Container.DataItem, "Desc")%> </td>

<td height =175 width=150>
<asp:ImageField DataImageUrlField="Imagename2" >
<ItemStyle Height="50px" Width="50px" />
<ControlStyle Height="50px" Width="50px" />
</asp:ImageField>
</td>

<td ><span style="color:#ffffff; font-family: Arial, Sans-Serif; font-size:small"> <%# DataBinder.Eval(Container.DataItem, "Comments") %> </td>
</tr>
<tr>
<td colspan=4 align=right><span style="color: #ffffff; font-size: smaller; font-family:Georgia, Serif, Times New Roman"><b>Product# <%# DataBinder.Eval(Container.DataItem, "sCode") %> </b></td>
</tr>
<tr>
<td style="color: #ffffff" align =center><span style="font-size:xx-small; font-family:Small Fonts"><B>Front</B></span></td>
<td style="color: #ffffff"></td>
<td style="color: #ffffff" align =center><span style="font-size:xx-small; font-family:Small Fonts"><B>Back</B></span></td>
<td style="color: #ffffff"></td>
</tr>
</ItemTemplate>

</asp:Repeater>
 
why not shift the Front and Back totally into the ItemTemplate (remove it from header template).

and move it before your bound column. it would be great if you can output some HTML and the way in which you want it...

Known is handfull, Unknown is worldfull
 
Yup..it works!! Thank you!! Appriciate your help
 
welcome ;) ...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top