Pinku

Pinku

  • NA
  • 227
  • 38.7k

HOw to hide a span in vb.net from code behind

May 18 2019 10:00 AM
<CB:CBLocalizedLiteral ID="litTip" runat="server" LocalizationID="litTip" Text="Key Skills: (Click on a skill not to display it in the ad)"></CB:CBLocalizedLiteral></span>
 
This is my html
 
I declare it as ==      Public SpanSkills As HtmlGenericControl     in code 
 
If SettingControlAB.GetBoolean(oNeo, "bDisplaySkills", oNeo.MyLocale.HostSiteEnum) Then
SpanSkills.Visible = False
End If
 
  
its comming inside the flag and 
It is flag protected but its not working and the value still showing as visible when i debug .

Answers (3)