I have a widget on a page, and I have exposed the "Visible" property of the base webpart to the widget, so editors can set the visibility of the widget on the Page tab.
How can I set the value of the "Visible" property in a custom scheduled task's code, in a way that when Visible is off, it's globally off and not displayed to any user.
If you can show me some reference or a code snippets, I really appreciate it.
I think we have done this only once with WebParts. I know this is old code, but can you try to find some inspiration in here how to do it:
Cool! Thank you Petar! :-)
Please, sign in to be able to submit a new answer.