Displaying posts categorized under

Repeater

ASP.NET Repeater control instead of grid

If you have read some of my articles here at ASPCode.net by now I am sure you know my strive for doing things myself instead of relying on thirdparty controls. For example, I have developed professional ASP.NET solutions almost every day for at least 5 years and still havn’t delivered a single one (well maybe one or two in [...]

Repeater control and separator

This is kind of a twist of the article Insert user control every N records in gridview . I am gonna show you (and give you the C# code) for a ASP.NET 2.0 repeater control giving you some flexibility with regards to repeater items. This technique is totally different, in the previous article we (despite the [...]

asp:repeater and css gallery – adding hovering and odd rows

This article begins here.
Odd rows in another color
Easy enough. We just change the alternatingitemtemplate to include a CSS class:

<alternatingItemTemplate>
<tr class="odd" …

 
 Row hovering
Now we want the current row (=the row the mouse is over) to be shown in another color:

Two small [...]

asp:repeater and css table gallery

Ever seen CSS Table Gallery before?
Just found it yesterday and since I am pretty useless when it comes to design I bookmarked it in a hurry and then found that this is also the perfect reason as to why you shouldn’t use asp.net dataview or datagrid for table rendering. Use repeaters – and you will have [...]