Sometimes that works (for me), and sometimes it doesn't.
Specifically WAP pages look at the page markup and then build the .(.vb) file.
That was done by editing the project file like this: Add Just open a web application project and copy from that. The problem was when I started to add User Controls (ascx) and Web Forms pages (aspx) to my “new” project from my old UI project.