【发布时间】:2014-12-11 08:56:30
【问题描述】:
我有一个Bind_Project_details()的函数如下:
string[] Parameters = new string[3] { "@User_ID", "@PAGE_NO", "@PAGE_SIZE" };
string[] DbTypes = new string[3] { "int","int","int" };
string[] ParameterTypes = new string[3] { "input", "input", "input" };
object[] values = new object[3] { iUserID, pageno, pagesize };
string[] Lengths = new string[3] { "5","5","5" };
P2ERefrence.Service du = new P2ERefrence.Service();
ds = du.returnDataSet("proc", "BIND_PROJECT_GRID", Parameters, DbTypes, ParameterTypes, values, Lengths);
在数据集项目中,详细信息来自数据库。我想将这些数据集值绑定在表体中,如下所示:
<table id="table1" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th><input type="checkbox" id="" name=""></th>
<th>User</th>
<th>Role</th>
<th>Project Name</th>
</tr>
</thead>
<tbody>
.........
.........
.........
</tbody>
</table>
【问题讨论】:
-
所有你需要做的就是打开一个网络浏览器,去谷歌然后搜索以下术语......“asp.net gridview dataset tutorial”,“asp.net databound controls tutorials”.. .您将为每个受众和每种语言获得数百万个搜索结果...试一试
-
我已将其绑定在 aspx 网格中,但我想将其绑定在表格主体下,客户端不关注 aspx 网格我有固定的表格头部部分并希望在表格行中绑定数据..跨度>