Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Datalist Paging

Datalist Paging

Scheduled Pinned Locked Moved ASP.NET
javascriptsysadmindockerhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    reogeo2008
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • R reogeo2008

      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

      J Offline
      J Offline
      jack_ajay
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups