I’m attempting to completely hide a custom web part I’m writing under specific circumstances. What I’m not finding a lot of help on is actually hiding the complete web part. Using:
this.Hide = true;
will hide the content of the web part, but it appears to leave the Chrome behind. I can’t change the Chrome display, so that’s not an option right now. Is there a more complete way to hide the complete web part using C#?
I’m not worried about the web part being rendered or not, just having it not visually display. What I ended up doing is changing the chrome through code if my specific situation arises.