title: BC30451: 'NewsBody' is not declared. It may be inaccessible due to its protection level
body: <p>Try as i might i cant get past this error. I'm not an ASP.Net developer but due to reasons outside my control have to develop 2-3 pages in ASP.</p>
  
  <p>I'm using Dreamweaver and have the asp.net set to compile at first load.</p>
  
  <p><strong>.aspx File</strong></p>
  
  <pre><code>&lt;%@ Page Language="vb" AutoEventWireup="false"  Src="Scripts/CurrentNews.aspx.vb" Inherits="NewsFunctionality" %&gt;
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
  &lt;title&gt;News&lt;/title&gt;
  &lt;link rel="stylesheet" type="text/css" href="CSS/NewsLayoutOne.css"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="OuterDiv" runat="server"&gt;
          &lt;img id="NewsImage" src="Images/DefaultNews1.png" &gt;
          &lt;div id="NewsBody" runat="server"&gt;Original Text&lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>.aspv.vb file</strong></p>
  
  <pre><code>' VB Document
  public partial Class NewsFunctionality
      Inherits System.Web.UI.Page
      'On load event for the page linked to this class file
     protected sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
         NewsBody.InnerHTML = "&lt;p&gt;Dynamic Text Generated.&lt;/p&gt;"
      End Sub
  End Class
  </code></pre>