I am working on a website (and not a web application) in VS 2008.Net 3.5, and it uses a single .aspx model where server code is included in the html head instead of using it. The aspx.cs code behind the page.
I would like to quickly convert the files to use the model with the codename, but for now the only way to do this is to delete the file by creating a new aspx page with the same name, then manually copy the code into the .aspx page and the server code into the .aspx page .cs.
Is there a faster way to do this?
I saw two articles that seem to answer this question, but unfortunately not: Working with single form web form pages in Visual Studio.NET and How to convert an aspx file or main page to page and code?
Both offer a simple solution, according to which VS works on the foot, you just point it to the file and shoot. For some reason they do not work. The first article seems to relate to VS 2002, and the second seems to relate to a web application.
Is there any hope for a website?
Also, maybe I see it wrong, is there an advantage for a single-page model? I plan to convert the entire website to a web application soon, is one page working well in web applications?
Michael La Voie
source share