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. how to display data horizontally in repeater??

how to display data horizontally in repeater??

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
4 Posts 4 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.
  • J Offline
    J Offline
    Jagz W
    wrote on last edited by
    #1

    could anyone explain how we can display data horizontally in repeater control

    One person's data is another person's program. --J.Walia

    A N 2 Replies Last reply
    0
    • J Jagz W

      could anyone explain how we can display data horizontally in repeater control

      One person's data is another person's program. --J.Walia

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Just use proper html in the ItemTemplate. Say you write like :

      <HeaderTemplate>
      <table>
      </HeaderTemplate>
      <ItemTemplate>
      <tr>
      <td>
      NAME : <%# Eval("NAME") %></td>
      <td>
      PASSWORD: <%# Eval("PASSWORD") %> </td>
      </tr>
      </ItemTemplate>
      <FooterTemplate>
      </table>
      </FooterTemplate>

      Here we display data horizontally using table. ;)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      A 1 Reply Last reply
      0
      • A Abhishek Sur

        Just use proper html in the ItemTemplate. Say you write like :

        <HeaderTemplate>
        <table>
        </HeaderTemplate>
        <ItemTemplate>
        <tr>
        <td>
        NAME : <%# Eval("NAME") %></td>
        <td>
        PASSWORD: <%# Eval("PASSWORD") %> </td>
        </tr>
        </ItemTemplate>
        <FooterTemplate>
        </table>
        </FooterTemplate>

        Here we display data horizontally using table. ;)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Simplify Code Using NDepend
        Basics of Bing Search API using .NET
        Microsoft Bing MAP using Javascript

        A Offline
        A Offline
        Anurag Gandhi
        wrote on last edited by
        #3

        A bit of modification in your code:

        <HeaderTemplate>
        <table>
        <tr>
        </HeaderTemplate>
        <ItemTemplate>
        <td>
        NAME : <%# Eval("NAME") %></td>
        <td>
        PASSWORD: <%# Eval("PASSWORD") %> </td>
        </ItemTemplate>
        <FooterTemplate>
        </tr>
        </table>
        </FooterTemplate>

        Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

        1 Reply Last reply
        0
        • J Jagz W

          could anyone explain how we can display data horizontally in repeater control

          One person's data is another person's program. --J.Walia

          N Offline
          N Offline
          Navin Pandit
          wrote on last edited by
          #4

          Hii, This may help you. If you want to bind data horizontally: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <%#Eval("Name") %> </ItemTemplate> </asp:Repeater> and this will bind vertically: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <div> <%#Eval("Name") %> </div> </ItemTemplate> </asp:Repeater>

          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