PRFDSR
Or, "parent reference from databound selection routine":
Public Sub BoundControlSelection(s As Object, e As EventArgs)
Dim oBoundControl As BoundControl 'DropDownList, CheckBox, etc
Dim oLabel As Label oDropDownList = CType(sender, BoundControl )
oLabel = oDropDownList.Parent.FindControl("lblStatus")
oLabel.Text = "Hello"
End Sub
Labels: david roberts, filth tube, lord blooddyke






















0 Comments:
Post a Comment
<< Home