Ich habe eine <td>
, die Text enthält.Wie bekomme ich eine Text von Code hinter in VB.net
<td width="60%" id="SpeciesName" runat = "server" ><b><%#showData(Container.DataItem, "Name")%></b></td>
Ich versuche, die von innertext SpeciesName' from the code behind, and Add it in a String list. I was capable of doing so for
asp zu bekommen: Textbox , but not for
`.
hier ist der Code-behind in 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
Vielen Dank im Voraus!
Sie den Innertext von 'SpeciesName' wollen? d. h. dieser Teil rechts - '<% # showData (Container.DataItem," Name ")%>'? – TheUknown
@TheUknown genau! – Wafae
@TheUknown Ich habe es gerade gelöst. Vielen Dank! – Wafae