Thought I would attempt to save some headache for those who find themselves in the need of hiding a Web Part. Spent some considerable time recently in the effort of hiding a Web Part, while taking a quick look at the object model it seemed that the visible method would do the trick. It certainly did with a peculiar side effect: It was causing an error.
After debugging and stepping through did confirm that it was triggering the error and it was being trapped correctly, checked permissions along with all the due diligence and still no luck.
Resolution
While I did not spend more time to determine the exact cause, I did recur to the Hidden method and that worked without a problem.
Hopefully, this will come in handy to the anyone else who does run into this problem.
No comments:
Post a Comment