Hi Ajay.
If you want paging to be enabled you must have the PagingHeaderTemplate and PagingFooterTemplate in the PageList.
<EPiServer:PageList runat="server" PageLinkProperty="PageLink" Paging="True" PagesPerPagingItem="10">
<ItemTemplate>
</ItemTemplate>
<PagingHeaderTemplate>
</PagingHeaderTemplate>
<PagingFooterTemplate>
</PagingFooterTemplate>
</EPiServer:PageList>
Hope this helps!
Br, Tore
You don't need the PagingFooterTemplate and PagingHeaderTemplate. It will work fine without.
You sure that it doesn't work? Could be that some elements are covering up the pagination nav? You also have a lot of invalid HTML code, table element directly inside an ul-list is invalid for instance. I would start with removing junks of code until you get the pagination to work and then add to it.
Good luck!
Hi guys in following code paging is not working.can u help out us what is problem?
<div id="spotlight_publications1" >
<ul>
<episerver:PageList PageLinkProperty="PageLink" paging=true PagesPerPagingItem=10 runat="server" ID="publications" >
<ItemTemplate>
<% if (CurrentPage.PageLink.ID==4946)
{%>
<table border="0" width="100%" >
<tr>
<%
try { if(CurrentPage.Property["SpotlightImage"]!=null )
{%>
<td valign=top > <img src='<%# Container.CurrentPage.Property["SpotlightImage"]%>' alt="Image" width=90 height=75 align=left/></td>
<%}
else
{%>
<td valign=top > <img src=../../images/hrsummit.jpg alt="Image" width=90 height=75 align=left/></td>
<%}}
%>
<% catch(Exception ex)
{}
%>
<td >
<table >
<tr>
<td colspan="2">
<div id="red_title">
<episerver:property PropertyName="PageLink" runat="server" ID="Property2" name="Property1"/>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div id="gray_title">
Key Highlights
<!--<img src='../../images/Key-Highlights.jpg' alt="Key Highlights" width=150>-->
</div>
</td>
</tr>
<tr>
<td colspan="2">
<%# Container.CurrentPage.Property["Description"].ToString() %>
</td>
</tr>
<tr>
<td valign=top>
<table>
<tr>
<td>
<div id="gray_title">
Table Of Content
<!--<img src='../../images/Tabel-of-Content.jpg' alt="Tabel of Content" width=150></td>-->
</div>
</td>
</tr>
<tr>
<td><%# Container.CurrentPage.Property["TableofContents"].ToString() %></td>
</tr>
</table>
</td>
<td valign=top>
<table>
<tr>
<td>
<%
i++;
if(i==10)
{%>
<NS:Payment PageLink='<%# Container.CurrentPage %>' visibleline="true" ru1nat=server ID="Price1">
</NS:Payment>
<NS:Price1 PageLink='<%# Container.CurrentPage %>' visibleline="true" runat=server ID="Price13">
</NS:Price1>
<%
}
else
{%>
<NS:Payment PageLink='<%# Container.CurrentPage %>' visibleline="false" r1unat=server ID="Price2">
</NS:Payment>
<NS:Price1 PageLink='<%# Container.CurrentPage %>' visibleline="false" runat=server ID="Price14">
</NS:Price1>
<%
}%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2"><hr/></td></tr>
</table>
</ItemTemplate>
</ul>
</div>