Combining multiple asp.net pages into a single page

asp.net, asp.net-webpages, html

Solution

The short answer is that you can not do that, and if you have reached a point that you need to do it, then you have a bad design on your pages. Why? Because a full page contains not only content but also css, javascript, title, headers etc, that are unique and you can not mix with some other page with out issues like javascript and css conflicts. For eg. What is the final title of the page? and other such.

The alternative that you have is:

- the use of `iframe`'s

- the use of code behind to render a page dynamically and add it on a place holder.

Problem

Is it possible to combine or bring in content on different aspx files under a single aspx page? However, I would like to achieve it without converting the aspx into ascx, thus no User Controls. NOTE: I am open to using client-side scripting such as Javascript or Jquery. And no, this is not a duplicate of. EDIT: Even though this seems like a bad design idea, this is the functionality I want. All the pages should become the content of a single page, overlooking all individual CSS and Javascripts.

Original source