Visualize the following scenario: A solution with three projects:
- {Project 1} ASP.NET Web Application - Containing 1 x .aspx file
- {Project 2} Class library - Containing my funky logic
- {Project 3} ASP.NET Web Application - [SET AS DEFAULT PROJECT] Containing Default.aspx [SET AS DEFAULT START PAGE]
(Project 3) Default.aspx calls my Class library (Project 2)to do its funky logic. Funky logic wants to instantiate the single .aspx file (Project 1) in the other web application.
Now to do this I would typically use BuildManager.CreateInstanceFromVirtualPath();. However I guess the context is Project 3 as thats where the request first started from.
How do I get hold of the aspx file in Project 1?