| 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:
>
|