Can I load an stand alone aspx page in another stand alone aspx page using System.Reflection?
I am using the ASP.NET 2.0 Web site project model.
Try using BuildManager.CreateInstanceFromVirtualPath. Sample usage:
Page p = BuildManager.CreateInstanceFromVirtualPath("~/Default.aspx", typeof(Page))
This answers this specific question, although, based on your comments, I'm not sure that this is what you really want.
1.4m articles
1.4m replys
5 comments
57.0k users