how to display data horizontally in repeater??
-
could anyone explain how we can display data horizontally in repeater control
One person's data is another person's program. --J.Walia
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 -
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 JavascriptA 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.
-
could anyone explain how we can display data horizontally in repeater control
One person's data is another person's program. --J.Walia
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>