Thursday, 19 August 2010

Setting the Visible property on a webpart throws

Using myWebPart.Visible = false and getting this?

The Visible property cannot be set on Web Part 'your_web_part'. It can only be set on a standalone Web Part.

Use myWebPart.Hidden = true instead.

If you found this post helpful, please support my advertisers:

1 comment:

  1. Great Post! It's very nice to read this info from someone that actually knows what they are talking about. real estate notes for sale


Spam comments will be deleted

Note: only a member of this blog may post a comment.