Re: problem of registering custom placeholder deinfition assembly
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Re: problem of registering custom placeholder deinfition assembly




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-10-07 06: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:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register