You cannot completely embed one content of an ASPX page in another for several reasons:
- You can embed
<html> tags in a non-sensitive way. - You are polluting one javascript state of one page with others.
You need to display Page.aspx as a Page.aspx view, and not include all the payload on the ASPX page.
I am not 100% sure if you can do this in plain-old-asp.net without calling the Render function for individual controls, using the Response stream as the target.
In ASP.NET-MVC, however, you can use the result of PartialView.
source share