更新时间:2023-11-15 15:34:34
假设您已经在标记中设计了 ListView(以及其中的绑定),这里是您在服务器端将数据加载到 listView 所需的代码:
Assuming that you have already designed your ListView (and bindings inside it) in your markup here is the code you need in your server side to load data into listView:
listView.DataSource = dt;
listView.DataBind();