Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

repeater in ASP.NET

Sleepy Head answered on April 14, 2023 Popularity 6/10 Helpfulness 4/10

Contents


More Related Answers

  • c# loop through repeater items
  • string c# repeat

  • repeater in ASP.NET

    0

    A repeater in ASP.NET is a server control that is used to display a repeated set of data items in a web page. It allows you to create a template for the layout of each item and then bind data to that template, repeating the layout for each item in the data source.

    To use a repeater control, you need to first define the layout template for the repeated items using HTML and placeholders for the data. You can then bind the data to the control by setting its DataSource property to a collection of objects or a data source control like a SqlDataSource or ObjectDataSource. Finally, you can call the DataBind method of the repeater control to populate the items with data.

    Here's an example of a simple repeater control that displays a list of products: 

    Popularity 6/10 Helpfulness 4/10 Language csharp
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 14 2023
    Sleepy Head
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.