<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="#"><asp:Label runat="server" ID="lblname" Text='<%#Eval("CourseName") %>'></asp:Label></a>
</div>
<div style="height: 13px"></div>
<div id="teacher">
<a href="#"><%#Eval("UserName") %> </a>
</div>
</div>
<div style="height: 4px"></div>
<div class="date">
<div id="datebegin">
<asp:Label ID="lbldatebegin" runat="server" Text='<%#Eval("BeginDate") %>'></asp:Label>
</div>
<div id="dateend">
<asp:Label ID="lbldateend" runat="server" Text='<%#Eval("ClosingDate") %>'></asp:Label>
</div>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
내 프로젝트에서 Repeater Control
이 정상적으로 작동합니다. 그리고 지금은 그 데이터를 대체하기위한 페이지 매김이 필요합니다. 그러나 나는 이것에 대한 어떤 정보도 가지고 있지 않다. 누군가이 문제에 관해 조언 해 줄 수 있습니다.ASP.NET에서 리피터 컨트롤로 페이징을 사용하는 방법은 무엇입니까?
아래 그림과 같습니다.
아마도 도움이 될 것입니다. http://www.aspsnippets.com/Articles/Implement-Paging-in-Repeater-control-in-ASPNet.aspx –