title: ASPX server code is being created in .aspx file
body: <p>just moment ago I discovered strange behaviour of my visual studio environment. I'm using ASP.net web application. When the webform is added, and i'm trying to place button on webform, instead of declaring button_Click event in code-behind file (WebForm.aspx.cs) this declaration is placed in aspx.file as follows:</p>
  
  <pre><code>&lt;script runat="server"&gt;
  
  protected void Button2_Click(object sender, EventArgs e)
  {
  
  }
  </code></pre>
  
  <p>
  Earlier everything worked correctly. What am i missing?</p>