06-07-06 12:23 PM
Hi Steve,
the easiest way to get both of these problems fixed is to use a custom
placeholder control
derived from the original placeholder control.
Here you can override the Render method, consume the generated html content
and remove the span tags.
Something like this:
protected override void Render(System.Web.UI.HtmlTextWriter output)
{
// catch the output of the original HtmlPlaceholderControl
TextWriter tempWriter = new StringWriter();
base.Render(new System.Web.UI.HtmlTextWriter(tempWriter));
string orightml= tempWriter.ToString();
// do the necessary adjustments
string newhtml = ModifyHtmlContent(orightml);
output.Write(newhtml);
}
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
<nepzilla@gmail.com> wrote in message
news:1149648768.967649.321220@i39g2000cwa.googlegroups.com...
> There's a bigger problem there. The default MCMS placeholder wraps your
> content in <span>s, meaning any block-type element you put in there is
> automatically invalid in say xhtml.
>
> Adding DTDs to template files (.aspx) is easy. But regarding the
> placeholder controls, you have to customize it a bit to make your pages
> completely valid.
>
>
> Steve Branson wrote:
>
[ Post a follow-up to this message ]
|