如何将数据绑定到HTML表TDS [英] How to bind data to html table tds

查看:225
本文介绍了如何将数据绑定到HTML表TDS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有HTML表10行我怎么能数据绑定到TDS?

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

我群里有10用户和表10行。

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

这是我的HTML表格。欲插入例如约翰成第一史蒂夫到5等。
我在SQL Server中此数据。

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.

推荐答案

试试这个方法。

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

这篇关于如何将数据绑定到HTML表TDS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆