Force Visual Studio To Regenerate The Designer Files For Aspx Or Ascx Files
Sometimes, the designer file of Aspx or Ascx page will be corrupted or missing.

This would cause compile issue preventing the application from running.
Here we will describe you how to resolve this issue.
As shown in the figure, right click on the project and select Conver To WebApplication.

Then a dialog will come as shown in the figure.

Click on the "Yes" button.
This will diefinitely create the designer file corresponding to the Aspx/Ascx file.
