Datalist Paging
-
Hi all, Can you help me in paging the datalist below,i tried many ways but i couldn't.Please help me out with the code. <asp:DataList ID="MyList" RepeatDirection="Horizontal" RepeatColumns="2" runat="server" Width="263px" Height="1px" Font-Size="XX-Small"> <SeparatorStyle Wrap="False" HorizontalAlign="Center" BorderWidth="10px" BorderStyle="None" Width="10px" BackColor="White"></SeparatorStyle> <ItemTemplate> <table style="text-transform: capitalize; color: #cccc99; font-family: 'Courier New'; font-variant: normal" border="1" cellpadding="0" cellspacing="0" bordercolor="#cccc99"> <tr> <td > <table > <tr><td> <table > <tr> <td rowspan="6" style="width: 3px"> <a href="#" runat="server" id="a1"> <img onclick="javascript:window.open('details.aspx?mid=<%# DataBinder.Eval(Container, "DataItem.MemberID") %>','_blank','menubar=no,scrollbars=yes,toolbar=no,resizable=yes,status=no,location=yes');" border="0" src="<%# RetnImage(DataBinder.Eval(Container,"DataItem.Photo1").ToString()) %>" width="100" height="120" id="imguser"> </a></td> <td style="width: 3px; height: 23px"> Name:<asp:Label ID="txtname" Text='<%#DataBinder.Eval(Container,"DataItem.Name")%>' runat="server" ></asp:Label></td> </tr> <tr> <td style="width: 3px; height: 21px"> Age:<asp:Label ID="txtage" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Age")%>'></asp:Label></td> </tr> <tr> <td style="width: 3px"> Qualification:<asp:Label ID="txtqlfn" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.HighestDegree")%>'></asp:Label></td> </tr> <tr> <td style="width: 3px"> Denomination:<asp:Label ID="txtdenomination" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Denomination")%>'></asp:Label></td> </tr> <tr> <td style="width: 3px"> MaritalStatus:<asp:Label ID="txtmstatus" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.MaritalStatus")%>'></asp:Label></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </ItemTemplate> </asp:DataList> Thanks in Advance
-
Hi all, Can you help me in paging the datalist below,i tried many ways but i couldn't.Please help me out with the code. <asp:DataList ID="MyList" RepeatDirection="Horizontal" RepeatColumns="2" runat="server" Width="263px" Height="1px" Font-Size="XX-Small"> <SeparatorStyle Wrap="False" HorizontalAlign="Center" BorderWidth="10px" BorderStyle="None" Width="10px" BackColor="White"></SeparatorStyle> <ItemTemplate> <table style="text-transform: capitalize; color: #cccc99; font-family: 'Courier New'; font-variant: normal" border="1" cellpadding="0" cellspacing="0" bordercolor="#cccc99"> <tr> <td > <table > <tr><td> <table > <tr> <td rowspan="6" style="width: 3px"> <a href="#" runat="server" id="a1"> <img onclick="javascript:window.open('details.aspx?mid=<%# DataBinder.Eval(Container, "DataItem.MemberID") %>','_blank','menubar=no,scrollbars=yes,toolbar=no,resizable=yes,status=no,location=yes');" border="0" src="<%# RetnImage(DataBinder.Eval(Container,"DataItem.Photo1").ToString()) %>" width="100" height="120" id="imguser"> </a></td> <td style="width: 3px; height: 23px"> Name:<asp:Label ID="txtname" Text='<%#DataBinder.Eval(Container,"DataItem.Name")%>' runat="server" ></asp:Label></td> </tr> <tr> <td style="width: 3px; height: 21px"> Age:<asp:Label ID="txtage" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Age")%>'></asp:Label></td> </tr> <tr> <td style="width: 3px"> Qualification:<asp:Label ID="txtqlfn" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.HighestDegree")%>'></asp:Label></td> </tr> <tr> <td style="width: 3px"> Denomination:<asp:Label ID="txtdenomination" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.Denomination")%>'></asp:Label></td> </tr> <tr> <td style="width: 3px"> MaritalStatus:<asp:Label ID="txtmstatus" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.MaritalStatus")%>'></asp:Label></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </ItemTemplate> </asp:DataList> Thanks in Advance
Hi friend, Try the contents given in this URL,a example for the repeater control is demonstrated here u hv to use a datalist instead of a repeater control.pls try this site. To the site