views:

103

answers:

1

Hi All, Can somebody tell me how to create designer.cs file by using .net code. Basically what i want to do here is that i have a bunch of aspx and ascx files created by previous versions of vs.net that lacks designer files and now i want to create designer files for those. I can generate empty designer files but what i want is that my code should generate the designer file so that i can remove the extra code from cs files. Any help will be highly appreciated.

+2  A: 

You're probably talking about the Web Site vs. Web Project stuff.

Create a new Web Project, import your files, and then right-click on each file and choose "Convert to Web Application". This will generate your designer files.

Dave Markle