Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7900533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:59:41+00:00 2026-06-03T08:59:41+00:00

Currently, I’m looking to create a page hierarchy outside of the main ‘content’ sections

  • 0

Currently, I’m looking to create a page hierarchy outside of the main ‘content’ sections as to keep it separate from other sections and to keep it with all other cross site data. I’m able to assign layouts, sublayouts, and get content back in the way that I would like to.

However, I need the content as XHTML (very simple XHTML currently) to push it through iTextSharp & Html Tidy or equivalent. Is there a pipeline or event that I would be able to hook so that I could either get most of the page or all of the page response?

I noticed the Sitecore.Layouts namespace includes Converter, DesignTimeHtml, and RuntimeHtml, the latter of which references the convertToRuntimeHtml pipeline, which seems to pass around an HtmlDocument. These seem to be pipelines relating to the WYSIWYG editor though.

If nothing as such exists, would finding all the controls on the page and then rendering them out come close to what Sitecore would render?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:59:43+00:00Added an answer on June 3, 2026 at 8:59 am

    I’m not sure you would have the low level access you need within a Sitecore pipeline to access the rendered HTML output of a System.Web.UI.Control, which is ultimately what a sublayout boils down to. And I am almost positive there is no Sitecore pipeline that would have the entire rendered page.

    From what I’ve seen while quickly looking in Reflector, the RenderLayout Sitecore pipelines will allow you modify the process as a Sublayout Item is linked up with its user control counterpart. The RenderingReference is then added to Sitecore.Context.PageContext. The Sitecore.Web.UI.WebControls.Placeholder is then in charge of getting all the RenderingReferences and calling the System.Web.UI.Control.RenderControl()` method.

    Being that Sitecore is calling System.Web.UI.Control.RenderControl() on all your sublayouts and basically throwing the output to the browser, without pushing the rendered HTML through a pipeline, you may want to look at a non-Sitecore solution.

    You could override all of the Render(HtmlTextWriter writer) methods on your user controls, but that is a lot of duplicate coding (unless you have a single base control?). Your best bet may be to use an ASP.NET HttpModule to do the formatting after the entire page has been generated and about to go to the client. Here is one example – http://madskristensen.net/post/A-whitespace-removal-HTTP-module-for-ASPNET-20.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
Currently playing about with KnockoutJS. Just trying to update an observable array from a
Currently i am consuming web service from android by the method SOAP.Here i need
I am currently running into a problem where an element is coming back from
Currently I'm doing some unit tests which are executed from bash. Unit tests are
Currently I am working with two layers. One layer is C++/CLI and the other
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application
Currently I am using HTML files for parts of my user interface. I display
currently, I`m implementing a map App with Mono4Droid and there I`m using a WebView
Currently I'm starting a new Activity and calling finish on a current one. Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.