Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7888239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:46:57+00:00 2026-06-03T05:46:57+00:00

Totally new to webforms user controls, I am bit confused, on how to create

  • 0

Totally new to webforms user controls, I am bit confused, on how to create a user control and fill some data on it.

for(int i = 0; i < Price.EpList.Count(); i++)
                        {

                            Price.EpList[i].Amount.ToString();
                            Price.EpList[i].Code.ToString();
                            Price.EpList[i].Desc.ToString();
                            Price.EpList[i].ID.ToString();

                        }

EpList is a list that contains info that i want to display in webpage on tabular format with checkboxes on each row.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:46:59+00:00Added an answer on June 3, 2026 at 5:46 am

    Take a look at the Repeater Control. You don’t have to loop through your list, you just bind the list to the repeater and define the html template you want for each repeated item.

    http://www.w3schools.com/aspnet/aspnet_repeater.asp


    EDIT: That article uses Visual Basic, so here’s the C# translation:

    Assuming this repeater:

    <asp:Repeater runat="server" ID="uxEpList">
    <ItemTemplate>
    <%--Html goes here--%>
    <%# Eval("Amount")%>
    <%# Eval("Code")%>
    <%# Eval("Desc")%>
    <%# Eval("ID")%>   
    </ItemTemplate>
    </asp:Repeater>
    

    In code behind:

    uxEpList.DataSource = Price.Eplist;
    uxEpList.DataBind();
    

    If you need to nest a repeater inside another one (using the Desc property from your comment) you can do it like this, by setting the DataSource property declaratively (note the single quotes):

    <asp:Repeater runat="server" ID="uxEpList">
    <ItemTemplate>
        <asp:Repeater Datasource='<%# Eval("Desc")%>' runat="server">
        <ItemTemplate>
        //etc...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm totally new to jQuery and Ajax, and I'm just confused trying to work
I'm totally new to powershell, and I need some help to get started. What
Alright totally new to jeditable, Say I have some <div> 's and <input type='hidden'
I´m totally new to programming in java, and following some basic tutorials for my
I'm totally new to Mac OS and iPhone and I'm writing some small app.
Totally new to custom control creation in Silverlight. I'm wanting a custom control that
Im totally new to WCF. Trying to create a Silverlight application with WCF services.
I am absolutely and totally new to rails, so the answer is probably very
I am totally new to emacs and is starting to learn how to use
I'm totally new to how to cache images. I output all images in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.