title: get element by Id Using Razor syntax
body: <p>is it possible to get an HTML element by it's Id in a Razor Code block? for example some where in a view this element exists. </p>
  
  <p><code>&lt;Input id='NameField' type='text'&gt;</code></p>
  
  <p>and further down in the view there is a razor code block</p>
  
  <pre><code>@{
  .... do some stuff
  .... etc.
  .... etc.
  .... etc.
  
  var nameTxtElement = GetElementById("NameField');
  
  }
  </code></pre>
  
  <p>I know how to do this using Jquery, but I was just wondering if it is possible to do using Razor?</p>
  
  <p>the primary reason being converting webforms with code behind to MVC, without implementing fully blown asp.net support into my MVC application.</p>