Implementing a ViewAsText property for a WebControl at design time
I've written my first blog about WebForms at design time.
I use DesignTimeElement and mshtml.IHTMLElement to create a ViewAsText option on the design surface.
http://weblogs.asp.net/andrewseven/articles/DesignTimeViewAsText.aspx