ASP.NET Repeater bind List
I am binding a List<string> to a Repeater control. Now I want to use the Eval function
to display the contents in ItemTemplate like
I am binding a List<string> to a Repeater control. Now I want to use the Eval function
to display the contents in ItemTemplate like
I was wondering how we can create nested repeater control dynamically?
<asp:Repeater ID="RepCourse" runat="server"> <ItemTemplate> <div style="width:400px"></div> <div class="course" style="float: left; margin-left: 100px; margin-top: 100px"> <div class="image"> <asp:Image ID="imgteacher" runat="server" Height="150" Width="248" ImageUrl='<%# "ShowImage.ashx?id="+ DataBinder.Eval(Container.DataItem, "CourseID") %>'/> </div> <div style="margin-left: 3px; width: 250px"> <div class="name"> <a href="#" rel="nofollow noreferrer noopener" rel="nofollow noreferrer noopener"><asp:Label runat="server" ID="lblname" Text='<%#Eval("CourseName") %>'></asp:Label></a> </div> <div style="height: 13px"></div> <div id="teacher"> <a href="#" rel="nofollow … Read more
I am currently having an issue with radio buttons and grouping. I have an asp radio button within a repeater control. I have the group name attribute set to “Customer”. When the page loads, the radio buttons are not grouped. Instead of the id fields being set to the group name, it is setting the value fields of the radio buttons. I know that I have tried setting radio buttons up outside of a repeater control and have had the same issue. What is going on here?
In my aspx, I have a repeater which contains three textboxes:
I am using nested repeaters to build a table for reasons I won’t discuss here, but what I’m looking to do is have two datasources, one for the top level repeater that will correspond to the rows, and one for the second level repeater that will return cells within a row.
How can I format data coming from a DataBinder.Eval statement in an ASPX page?
I have the following repeater below and I am trying to find lblA in code behind and it fails. Below the markup are the attempts I have made:
Here’s the code from the ascx that has the repeater:
I’ve a asp.net linkbutton inside asp.net repeater control which renders multiple link buttons. I want to set the style of each and every linkbutton dynamically.