chelvis
12-15-2006, 06:09 PM
I created a repeater control. I added the following in the header template. But its not displaying the data from database.
But if I put the same thing in itemtemplate, then it works.
Why? The reason I put this in header is I dont want it to repeat. want to display once.
<tr>
<td valign="top" colspan="3"><a class="header">Product Values for <%# DataBinder.Eval (Container.DataItem, "model" ) %></a></td>
</tr>
<tr>
<td height="20" colspan="3"><img src="_spacer.gif" /></td>
</tr>
But if I put the same thing in itemtemplate, then it works.
Why? The reason I put this in header is I dont want it to repeat. want to display once.
<tr>
<td valign="top" colspan="3"><a class="header">Product Values for <%# DataBinder.Eval (Container.DataItem, "model" ) %></a></td>
</tr>
<tr>
<td height="20" colspan="3"><img src="_spacer.gif" /></td>
</tr>