Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code> //------------------------------------------------------------------------------ // &lt;auto-generated&gt; // This code was generated by a tool. // Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // &lt;/auto-generated&gt; //------------------------------------------------------------------------------ namespace FirstWeb { public partial class _Default { /// &lt;summary&gt; /// form1 control. /// &lt;/summary&gt; /// &lt;remarks&gt; /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// &lt;/remarks&gt; protected global::System.Web.UI.HtmlControls.HtmlForm form1; } } </code></pre> <p>You will not change this auto-generated C# file. As you keep adding ASP.NET controls to the page, this file grows with the additional declarations. In the older versions of C# (before version 2.0) and Visual Studio (before Version 2005), this code would be in the regular Default.aspx.cs file as well. </p> <p>With the introduction of partial classes in C#, the code belonging to the same class can be split across multiple files. Here you see the “public partial class _Default’, which is used to hold the <strong>code generated by the Visual Studio designer</strong>. You will see the same class signature in the Default.aspx.cs file as well (you use this to write your own custom code). </p> <p>So, the developer (you) and the designer (Visual Studio) can work independently without stepping over each other.</p> <p>This is taken from <a href="http://www.infinitezest.com/articles/first-web-program-web-project-in-csharp-explained.aspx" rel="nofollow noreferrer">First Web Program (Web Project) in C# Explained</a> </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload