Forums - C# Corner

Forum guidelines
Manas Sahu

Manas Sahu

  • 1.7k
  • 114
  • 1.6k

HOw to hide a span in 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)