VS---tools---options---text editor---file extension, just add ashx on the right, select MS-VS C# to save