By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,537 Members | 2,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,537 IT Pros & Developers. It's quick & easy.

How to use SeparatorTemplate with repeater

P: n/a
I have a repeater with header / item / alternate item and footer templates
which works great (or at least ok).

I want to put an <hr/tag as a separator but as soon as I put that in the
output in no longer generated in any form that I can see as a pattern.

The header starts the table, the footer ends it.

The item has on <trwith 4 <td, the alternating item has <tr< with 3 <td>
( the 4th in the item is a <td style="width: 3px; background-color: Gray">
used to separate the item / alt item.

Any ideas??

Thanks
LS

Nov 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
The item has on <trwith 4 <td, the alternating item has <tr< with 3
<td( the 4th in the item is a <td style="width: 3px; background-color:
Gray"used to separate the item / alt item.

Any ideas??
This doesn't sound right, though it's a little difficult to check without
seeing your markup and/or code...

However, the item, alternating item and separator sections need to be
written in such a way so as to produce valid output. E.g. if your repeater
is creating an HTML table, then it needs to be a valid HTML table with the
correct number of columns per row, etc...

Therefore, if your item section is one <trwith four <tdelements, your
alternating section and separator section will need to be of the same
structure...

Does it work if you (temporarily) remove your alternating section, and make
your separator section as follows:

<tr>
<td colspan="4"><hr /></td>
</tr>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.