Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7593741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:14:42+00:00 2026-05-30T21:14:42+00:00

I have a DataList on my webpage, which I am populating through a data

  • 0

I have a DataList on my webpage, which I am populating through a data srouce at runtime.
Though I have set RepeatDirection=Horizontal and RepeatColumn=5, I am still not getting the columns to be repeated in the horizontal direction. Thye are getting stacked over each other vertically.

I have the following the layout for my data list:

<asp:DataList ID="DataList2" runat="server" RepeatColumns="5" 
            RepeatDirection="Horizontal">

<ItemTemplate>
<tr></tr><tr style="text-align:center"><td ><strong><%#Eval("QuotedVersions")%></strong></td></tr><tr></tr>
<tr><td><strong>URL No.</strong></td>   <td><strong>URLs.</strong></td>   <td><strong>Avg.RJ Value</strong></td></tr>
<tr>    <td style="width:40px">URL1</td>    <td><a href='<%#Eval("URL1")%>'>Link1</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ1")%></td> </tr>
<tr>    <td style="width:40px">URL2</td>    <td><a href='<%#Eval("URL2")%>'>Link2</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ2")%></td>  </tr>
<tr>    <td style="width:40px">URL3</td>    <td><a href='<%#Eval("URL3")%>'>Link3</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ3")%></td>  </tr>
<tr>    <td style="width:40px">URL4</td>    <td><a href='<%#Eval("URL4")%>'>Link4</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ4")%></td>  </tr>
<tr>    <td style="width:40px">URL5</td>    <td><a href='<%#Eval("URL5")%>'>Link5</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ5")%></td>  </tr>
<tr>    <td style="width:40px">URL6</td>    <td><a href='<%#Eval("URL6")%>'>Link6</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ6")%></td>  </tr>
<tr>    <td style="width:40px">URL7</td>    <td><a href='<%#Eval("URL7")%>'>Link7</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ7")%></td>  </tr>
<tr>    <td style="width:40px">URL8</td>    <td><a href='<%#Eval("URL8")%>'>Link8</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ8")%></td>  </tr>
<tr>    <td style="width:40px">URL9</td>    <td><a href='<%#Eval("URL9")%>'>Link9</a></td>  <td style="text-align:center">   <%#Eval("AvgRJ9")%></td>  </tr>
<tr>    <td style="width:40px">URL10</td>    <td><a href='<%#Eval("URL10")%>'>Link10</a></td> <td style="text-align:center">   <%#Eval("AvgRJ10")%></td>   </tr>
<tr>    <td >nDCG: </td>   <td> </td> <td><%#Eval("nDCG")%></td>    </tr>
</ItemTemplate>
        </asp:DataList>

Why are the records not appearing horizontally? What is to be rectified?

Current layout the way it is appearing:

enter image description here

Required layout:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:14:44+00:00Added an answer on May 30, 2026 at 9:14 pm

    It appears that the elements display in some sort of table but you don’t have the <table> at the beginning of the ItemTemplate, and a closing tag </table> at the end of the ItemTemplate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DataList, which is set to Horizontal Flow which renders a set
I have a DataList like so: <asp:DataList ID=dlMyList runat=server RepeatColumns=5 RepeatDirection=Horizontal CellSpacing=5 > <ItemTemplate>
I have a datalist <asp:DataList ID=dlstImage runat=server RepeatDirection=Horizontal RepeatColumns=5 CellSpacing=8> <ItemTemplate> <asp:ImageButton ID=Image runat=server
I have a datalist <asp:DataList ID=dlst1 runat=server RepeatDirection=Horizontal RepeatColumns=5 CellSpacing=8> <ItemTemplate> <asp:ImageButton ID=Image runat=server
I have a DataList control that displays a set of elements. Can anyone point
I have a datalist control which some controls(ex: button) are in it. I want
I have a datalist with itemtemplate which contains: an anchor and an href tag
I have a Datalist which renders a list of checkboxes and value attributes on
I have one update panel inside which I have datalist. This update panel triggers
This is aspx page which have datalist in datalist radio buttons are there. it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.