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
1
vote
4 answers

Dynamically change :after pseudo background-color

I am creating buttons within a repeater like this (simplyfied):
Aiko West
  • 791
  • 1
  • 10
  • 30
1
vote
0 answers

How should i display data from 2 tables in 1 Repeater control in asp.net?

I can join 2 tables in SQL and it shows the result i want but in the code it returns that tourName column doesn't exist. (rezervation table has tourId as foreign key) SELECT r.*, t.name as tourName FROM [dbo].[rezervation] r(NOLOCK) …
1
vote
1 answer

Binding Data to server controls in asp:repeater

I would like to have a repeater control bound to method and display the result as a list of linkbuttons, but I can't get by head around it. This is what I've tried: In the asp page I have:
gryzlaw
  • 153
  • 1
  • 8
1
vote
1 answer

ASP.NET Bootstrap 4 Pagination

I used pagination as described in this article
user2564121
  • 105
  • 10
1
vote
1 answer

Getting edited data from Repeater control in asp.net

I have a list List financialDates = new List(); and I bind this list to a repeater as a data source FinancialDates.DataSource = financialDates; FinancialDates.DataBind(); and…
SP1
  • 1,182
  • 3
  • 22
  • 47
1
vote
0 answers

jQuery DataTable Child row with data from SQL asp net server side

I'm been using jquery datatables with asp net repeater often and avoid the dull look of gridview and now I wanted to try adding child row with a listview but I don't know how to do it 'cause every example is using jquery and ajax. This is just an…
Jackal
  • 3,359
  • 4
  • 33
  • 78
1
vote
0 answers

Repeater shows same values from many to many tables

Sorry for Bad Post and English,I am new at stackoverflow. I have write a complicate SQL comment to union tables that contains many to many tables also. When I execute to query it returns correct data. I am using this view in repeater. It shows same…
1
vote
2 answers

use bootstrap-4-carousel in asp repeater

I try to use bootstrap-4-carousel as the example in the link bootstrap-4-carousel in asp: repeater so the image will bring form database. I try to select the image in normal function as follow SqlDataAdapter da; da = new…
1
vote
1 answer

Table row server side click in repeater?

I have a repeater which has table as per below code and I need to send param to code behind when table row is clicked. At the moment I am passing it on LinkButton1 click. I have also tried wrapping in LinkButton but it's not working How do I do…
user9869955
1
vote
3 answers

C# Why does OnItemDataBound fire before Page_Load?

I have a question about C# repeater. I have default width setting, and it will change base on some conditions in the Page_Load, I want change to be pass to my Image on OnItemDataBound. However, it seems that the OnItemDataBound is firing off before…
Julia
  • 1,207
  • 4
  • 29
  • 47
1
vote
1 answer

Count items in datasource or inside repeater

I found some other questions about this argument but I can't get anything to work. I have a repeater with datasource, this is my repeater code:
1
vote
1 answer
1
vote
1 answer

asp.net web page, getting jQuery Accordion plugin to work with asp:Repeater control

I'm working on a asp.net project. I've been asked to create a page so site admins could add articles and everyone else could add comments under those articles. I have 2 separate tables in my db, Articles/Comments. On page load I'm populating all the…
zezz
  • 93
  • 2
  • 12
1
vote
0 answers

How to display repeater item (list) column by column

I am trying to create a webpage that displays tables for when a user-defined movie can be seen in a given cinema. Lets say a user searches for "Star Wars ep. 8". I then provide a list of cinemas, and for each cinema a table like this:
user7096034
1
vote
0 answers

How to display the selected row from the database to a modal once a button in asp repeater has been clicked? ASP C#

I am trying to make a table where in it shows the data from the database and once you click on the view details button, a modal or pop-up will appear. This modal or pop will contain the details of the selected row This is the code in ASP.net. …
affm0220
  • 21
  • 5
1 2
3
14 15