title: Weird Error on Visual Studio - "you could use the navigation bar to switch context"
body: <p>I have been trying to link a a web form to be a able to access a variable in the master page. I did this before it worked. But now when I do it I get an error.</p>
  
  <p>The code in Site.Master </p>
  
  <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="Site" %&gt;
  </code></pre>
  
  <p>The code in Site.Master.cs</p>
  
  <pre><code>public partial class Site : System.Web.UI.MasterPage
  {
      public string hi = "";
  
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  }
  </code></pre>
  
  <p>The code in WebForm1.aspx:</p>
  
  <pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="WebForm1.aspx.cs" Inherits="WebForm1" %&gt;
  &lt;%@ MasterType VirtualPath="~/Site.master" %&gt;
  </code></pre>
  
  <p>The Code in WebForm1.aspx.cs</p>
  
  <pre><code>public partial class WebForm1 : System.Web.UI.Page
  {
  protected void Page_Load(object sender, EventArgs e)
       {
           Master.hi="new"
       }
  }
  </code></pre>
  
  <p>When I hover over the hi, I get this message</p>
  
  <p><a href="http://i.stack.imgur.com/8rLlw.png" rel="noreferrer">Error in Visual Studio - "You can use navigation bar to switch contexts</a></p>
  
  <p>Here is another image 
  <a href="http://i.stack.imgur.com/hmpZ6.png" rel="noreferrer">Screenshot</a></p>
  
  <p>If you guys could help me it will really be great</p>