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