title: How do I hide an element in the shared layout based on the controller in MVC
body: <p>I have a bootstrap navbar at the top of my page main page and inside it is a text input. I want it hidden until a search is performed and the user sees the results in the <code>results</code> controller .</p>
  
  <p>This is inside my bootstrap navbar.</p>
  
  
  
  <pre><code>&lt;input type="text" class="form-control" placeholder="Search"&gt;
  </code></pre>
  
  <p>For example:</p>
  
  
  
  <pre><code>Hidden:  www.example.com/home/index
  Visible: www.example.com/results
  </code></pre>