0
我有一个<td>
包含文本。如何获得来自VB.net中代码的文本
<td width="60%" id="SpeciesName" runat = "server" ><b><%#showData(Container.DataItem, "Name")%></b></td>
我试图让SpeciesName' from the code behind, and Add it in a String list. I was capable of doing so for
ASP将InnerText:文本框, but not for
`。
这里是后面的代码在vb.net
Private Shared Function getInputValues(ByVal currItem As RepeaterItem) As List(Of String())
Dim Input As String = "SpeciesName"
Dim alParams As New List(Of String())(1)
Dim txtCurrent As TableCell = CType(currItem.FindControl(lstInput), TableCell)
If txtCurrent.Text.Trim <> "" And txtCurrent.Text.Trim <> "0" Then
alParams.Add(New String() {Input, txtCurrent.Text.Trim, "int"})
End If
Return alParams
End Function
提前感谢!
你想'SpeciesName'将InnerText?即这个部分,右 - <%#showData(Container.DataItem,“Name”)%>'? – TheUknown
@完全知道! – Wafae
@TheUknown我刚刚解决它。谢谢! – Wafae