January 2009 Entries

Test if MasterPage ContentPlaceHolder has content or is empty

UPDATE: Thanks to Jon Hynes of InfoMason, added functionality to support nested master pages. Code updates highlighted. I've seen several articles on the web that lay out a method for checking to see if a ContentPlaceHolder has any content or is empty. These work some of the time but unfortunately fall down in certain situations – like a placeholder that contains an embedded literal code block for example. In this case, there is no publicly exposed method that will provide the answer and no way to assemble any information that would tell us whether the ContentPlaceHolder is empty or has content. Fortunately,...

posted @ Thursday, January 22, 2009 2:12 PM | Feedback (3)

Blog Moved!

I've moved all my technical posts into this blog -- Chris Hynes's .NET Gallimaufry. The RSS url for this is http://feeds.feedburner.com/ChrisHynes. Company news and related posts will remain at the Krystalware Blog, with RSS here: http://feeds.feedburner.com/krystalware.

posted @ Thursday, January 22, 2009 1:40 PM | Feedback (0)