Question

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

http://imgur.com/oljO41v

When i try to access the testest.aspx page i get this error:

http://imgur.com/SX6lJWh

How can i solve this ? Thank you very much

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top