Irakli Lekishvili
Irakli Lekishvili

Reputation: 34158

How to bind data to html table tds

I have HTML Table with 10 rows how I can bind data to the tds?

I have groups where is 10 users and table with 10 rows.

Here Is my html table. I want to insert for example John into first Steve into 5 and so on. I have this data in SQL server.

enter image description here

Upvotes: 0

Views: 3513

Answers (1)

Sanjay Goswami
Sanjay Goswami

Reputation: 1386

Try this way..

<table>
        <asp:Repeater ID="rpt" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("UserName") %>
                    </td>
                    <td>
                        -
                    </td>
                    <td>
                        <%#Eval("Email") %>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>

Upvotes: 1

Related Questions