views:

305

answers:

4

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...

+1  A: 

That can be considered a feature by the ASP.NET MVC folks.

Otávio Décio
Right! So what's the problem again?
le dorfier
+1  A: 

Usually, there is a check box asking if you want to have the code in a separate file. Did this box get unchecked at some point (and so it's now the default)? It's easy to get in the habit of clicking through these common dialogs and not noticing that it may have changed.

tvanfosson
+1  A: 

I don't mean to be rude by asking an obvious question, but have you made sure that the "place code in a separate file" check box is checked when you create your page?

Adam Barney
+2  A: 
Dror