title: Creating web form sometimes results in Partial Class rather than Public class for code behind
body: <p>I've realized that some of the code behind pages in my project are Partial classes but some are declared as Public Class all the pages are created the same way in Visual Studio 2010.<br>
  (Right Click folder -> Add -> New Item -> Web Form)</p>
  
  <p>Is there any reasoning why sometimes it creates a Partial class over a Public Class, and could this cause any issues with the environment or the end product.</p>
  
  <h2>Partial Class Example</h2>
  
  <p>This is one of the pages that created as a partial class</p>
  
  <h3>Codebehind</h3>
  
  <pre><code>Partial Class invParley
      Inherits System.Web.UI.Page
      Private UsrProfile As New cBasicProfile
      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  </code></pre>
  
  <h3>Front Page</h3>
  
  <pre><code>&lt;%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="invParley.aspx.vb" Inherits="Platform.invParley" %&gt;
  &lt;%@ MasterType VirtualPath="~/Site.master" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"&gt;
  </code></pre>
  
  <h2>Public Class Example</h2>
  
  <p>This is what most of the pages look like and this is what new pages seem have</p>
  
  <h3>Codebehind</h3>
  
  <pre><code>Public Class propNotAvail
      Inherits System.Web.UI.Page
      Private UsrProfile As New cBasicProfile
  </code></pre>
  
  <h3>Front Page</h3>
  
  <pre><code>&lt;%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="propNotAvail.aspx.vb" Inherits="Platform.propNotAvail" %&gt;
  &lt;%@ MasterType VirtualPath="~/Site.master" %&gt;
  </code></pre>