Microsoft Content Management Server - Re: problem of registering custom placeholder deinfition assembly

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2007 > Re: problem of registering custom placeholder deinfition assembly





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: problem of registering custom placeholder deinfition assembly
Stefan Goßner [MSFT]

2007-07-10, 1:19 pm

Hi Mindy,

that looks good.
Should remove the unwanted tags from the html placeholder assigned to this
control.

Cheers,
Stefan


"Mindy" <Mindy@discussions.microsoft.com> wrote in message
news:F5E20A0D-000C-4570-BC74-61EB0B73297B@microsoft.com...[vbcol=seagreen]
> Thanks million times!
> It works.
>
> One more question: How can i override the render method to strip out
> un-necessary style for all of the existing pages?
>
> I just added this method at the of the strippingHtmlPhcontrol but it did
> not
> work.
>
> 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 = orightml;
>
> newhtml = RemoveUnwantedTags(newhtml);
> newhtml = RemoveBlankStyleTags(newhtml);
> newhtml = RemoveEmptyTags(newhtml);
> newhtml = StripAll(newhtml);
>
> output.Write(newhtml);
> }
>
>
>
> "Stefan Goßner [MSFT]" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com