Mesut Başaran
Mesut Başaran

Reputation: 977

Creating Dynamic Web Page

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

Upvotes: 2

Views: 2022

Answers (1)

Abhitalks
Abhitalks

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

Related Questions