I am trying to write an aspx page that can set some visibility of a control based on whether it has data in it or not. Here is a code snippet:
Lbl = New Label
Lbl = CType(Me.FindControl("lblGroup" & i), Label)
If Not IsDBNull(dr("GroupName")) Then Lbl.Text = dr("GroupName") & ":"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.