Questions tagged [asprepeater]

Use it for displaying a repeated list of items that creates a connection between data source and user interface.

A Repeater has five templates to format it from data source:

  • HeaderTemplate --> Displays header text and applies different styles.
  • AlternatingTemplates --> Changes the style if items are changing on data binding.
  • ItemTemplate --> Displays items when it's not in header of footer mode.
  • SeparatorTemplate --> It separates items using <br> tags.
  • FooterTemplate --> Displays footer text and applies different formatting.
212 questions
2
votes
1 answer

Repeater Container.DataItem vs Item

I'm working on a project that uses Container.DataItem in ascx files inside of repeaters a lot. Is there a difference between using Container.DataItem and casting it vs Item if the ItemType declared for the repeater?
Teeknow
  • 1,015
  • 2
  • 17
  • 39
2
votes
1 answer

How to access Parent repeater id from code behind

I have a nested repeater on my page like: Aspx page:
<%# DataBinder.Eval(Container.DataItem,"question") %>