Reputation: 977
I am trying to create a dynamic web page from a template.Then i want to create a menu item from it.
I am creating the page(testtest.aspx for example) and everything works fine but the created page doesn't include in project so i can't reach it because the page is not compiling.How can i do this programmatically ?
This is the code that generates the page
When i try to access the testest.aspx page i get this error:
How can i solve this ? Thank you very much
Upvotes: 2
Views: 2022
Reputation: 28387
You are looking for loading aspx pages from a location other than file-system. ASP.Net has built-in mechanism for doing that using providers: VirtualPathProvider
.
Details are here: http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx
This will point you in the right direction: http://support.microsoft.com/kb/910441
Upvotes: 2