C# .NET - How do you hide a control from code behind based on a database value

Asked By TommySG SG on 10-Jul-15 10:56 AM
I want to hide a formviewc control from the c# code using a if statement saying

if(valuefromdatabase == "")
hide formview control

how can I do this? Btw this is using asp 4 in visual studio 2010
Robbe Morris replied to TommySG SG on 10-Jul-15 11:03 AM
this.controlid.visible = false;