我每行都有Repeater
一个LinkButton
。我希望能够读取Label
与LinkButton
. 这是我当前正在使用的代码,但我不确定在我的“单击”方法中放置什么链接按钮以获取我行中其他控件的值。
中继器 ItemDataBound
Private Sub Repeater_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater.ItemDataBound
Dim oRow As xsdTable.MyDataTableRow
Dim RemoveLinkButton As LinkButton
RemoveLinkButton = e.Item.FindControl("RemoveLinkButton")
AddHandler RemoveLinkButton.Click, AddressOf RemoveLinkButton_Click
// Set other Controls Information
End Sub
RemoveLinkButton 点击事件
Public Sub RemoveLinkButton_Click(sender As Object, e As System.EventArgs)
// Not sure what to do here to get the id for that row and identify the other
// controls to get the information from them...
End Sub