Search code examples
visual-studiovisual-studio-2005code-behind

Visual Studio 2005 stopped adding code-behind files


This morning, when I tried to add a new ASPX page to my project, Visual Studio decided that I no longer needed any .CS files associated with it. Trying to add a web control produced same results: .ascx file with no .cs. I've got two questions so far:

  1. Considering that no changes have been made to the system over the weekend, what could be the cause of this?
  2. Is re-installing VS the only option right now?

I'm running Visual Studio 2005 SP1 on Windows XP SP3.

Thanks!

EDIT: Thank you all. The checkbox DID get unchecked at some point and I simply did not see it. I will blame this one on Monday...


Solution

  • there is a check box you may have accidentaly un-checked: Place code in separate file
    dialog
    (source: msdn.com)