我有一个html表,我在服务器级运行。但是,我无法访问正在填充的数据。从动态htmlTable获取数据在vb.net
我正在使用JavaScript填充表格,但我需要使用vb.net访问数据。
我正在使用jquery通过使用.html方法获取信息到页面。
这里是我的javascript,
function ShowProj(strId, qno,ar) {
$('#hiddenQno').val(qno);
$('#qnoLbl').val(qno);
var output = '';
output = "
Product";output += "
Bond";output += "
Cut";output += "
Pack";output += "
Delivery date";for (i = 0; i < ar.length; i++) {
output += "
";output += "
" + ar[i][0] + "";output += "
";output += "
";output += "
";output += "
";output += "
"}
$('#projGrid').html(output);
}
我传递使用`ArrayList中从vb.net的信息。
这里是我的html,
这里是我的vb.net。
For Each row As HtmlTableRow In projGrid.Rows
'Dim chkBond As HtmlInputCheckBox = row.Cells(1).Controls(0)
Dim str As String
str = row.Cells(0).InnerText
Next
+0
你有机会看到我的回答,我认为你需要一些hiddenfield办法去,因为你无法更新viewstate,因此在代码后面可用。 –
2014-10-01 02:35:47
+0
为什么不使用Knockout.js和WebApi创建和执行CRUD操作? –
2014-10-03 11:46:34