Regenerating *.aspx.designer.cs file

If you do some barbarous copy-paste with asp WebForms you may corrupt your *.apsx.desginer.cs file. Recreate a new one is as simple as performing the following steps:

- Delete the *.aspx.designer.cs file.
- Right click on the *.aspx page and select “convert to web application”

 enjoy!

2 Responses to “Regenerating *.aspx.designer.cs file”

  1. nicki Says:

    Thanks, this saved my bacon.

  2. Tip: regenerate aspx.designer.cs files when corrupted | Under My Hat Says:

    […] for this tip go to Matthias Suter for shortly pointing to this possibility on his blog. Other Hatties at Under My Hat Tip: Solving error “Could not load type” in Visual Studio If you […]