I am using VS2010 and I created a ASP.net empty web application, but I cannot for the life of me get it to generate an index.aspx.cs file. I double click any control in the view and I just get nothing. What could I possibly be missing? I used to be able to just double click on a control and it would automatically generate the .cs if it didn’t exist.
Share
When you add a new item to the project and pick “web form” as type, you should have both
index.aspxand the code behind file. Double-clicking controls does not generate the code behind file, it only adds event handlers to it. Take a look at this walkthrough.