How to generate aspx.designer.cs file in Microsoft Visual Studio? naveen 16/04/2014 The quickest way to generate is by Right-clicking on the aspx file, then choose "Convert to web application" and then, the designer.cs file is regenerated..