如何获取在VB.NET中用html.Append()
进行的输入的值?
我有此代码,并且效果很好@
Dim dt As DataTable = Me.GetData()
Dim html As New StringBuilder()
html.Append("<thead>")
html.Append("<tr>")
For Each column As DataColumn In dt.Columns
html.Append("<th>")
html.Append(column.ColumnName)
html.Append("</th>")
Next
html.Append("</tr>")
html.Append("</thead>")
html.Append("<tbody>")
For Each row As DataRow In dt.Rows
html.Append("<tr>")
For Each column As DataColumn In dt.Columns
If (column.ColumnName = "False") Then
''' i want get value of this input '''
html.Append("<td><input type='checkbox' ID='checkall' value='false' ></td>")
Else
html.Append("<td>")
html.Append(row(column.ColumnName))
html.Append("</td>")
End If
Next
html.Append("</tr>")
Next
html.Append("</tbody>")
tableProcessNotAttibuted.Controls.Add(New Literal() With {
.Text = html.ToString()
})