Saturday, March 24, 2012

Deleted designer.cs

Is there a way to have the IDE re-generate the designer.cs file? I had a few get deleted...and I need to have them recreated.

I suppose you use the wap (web application model).

I just deleted an "aspx.designer.cs" file in my project and tried the followings to get it back:

- switch to source view/code view/design view -> not works

- rename any server side tag's id in the aspx -> not works

- add a new server side tag to the aspx -> not works

- right click on the aspx in the solution explorer, and select "convert to web application" -> works! (this option only shown for aspx files which has not yet an auto generated designer file!)


NICE! Good find...thanks!

No comments:

Post a Comment