3
votes

I have a designer working on several pages in Dreamweaver. The designer is creating .aspx files with the Page directive at the top. These are getting shipped to me and I'm adding them to the Visual Studio ASP.NET WebForms Web Application Project. The problem is that there's no code-behind file by default, and I'm trying to find a shortcut to have them autogenerated as if I've added a fresh page from Visual Studio.

Is anybody aware of a shortcut?

Thanks!

3
Ha! You should use MVC instead. :) - Esteban Araya

3 Answers

3
votes

Add the aspx to your project, then right click on it and select "Convert to Web Application"

1
votes

Long term, answer to working with designers is to upgrade to MVC. A little easier to work with.

For the task at hand, this workflow has worked out pretty good in the past:

1) Create new web form (aspx) with appropriate name.
2) copy/paste in designer's code (sans @Page directive)
3) pray and such

Or, add the page from visual studio. Then pave over it.