hello,
i try to use the code before to work on the visible part, but then now it's disapear and not even show.
Dim lblMessage2 As Label = (TryCast(e.Item.FindControl("OPMissionSLabel"), Label))
Dim lblMessage3 As Label = (TryCast(e.Item.FindControl("Label39"), Label))
If Not String.IsNullOrEmpty(lblMessage2.Text) Then
lblMessage3.Visible = False
Else
lblMessage3.Visible = True
End If
<table>
<tr>
<td><p class="padding2"><b><asp:Label ID="Label39" runat="server" Text="Program Mission:" Font-Size="18px" Font-Names="Arial" width="180px"></asp:Label></b></p></td>
</tr>
<tr>
<td><p class="padding4"><asp:Label ID="OPMissionSLabel" runat="server" Text='<%# Eval("OPMissionS")%>' Font-Size="12px" Font-Names="Arial" width="650px"></asp:Label></p></td>
</tr>
</table>
please help.
if the OPMissionslabel has data, then "Label39" visible is true, but if not then is false.
by the way, this is inside the ListView that i need to use FindControl
please help.
thanks.