title: Sending a value in header in MVC Action request
body: <p>I am working on an ASP.NET MVC C# Project and I have to send some certain value that comes from a drop-down list in the GUI with the header of every request.</p>
  
  <p>I have both normal MVC requests.(@Html.Action....)
  and ajax requests. </p>
  
  <p>I wrote this code for all ajax requests in the _Layout:</p>
  
  <pre><code>$.ajaxSetup({
        beforeSend(xhr) {
            xhr.setRequestHeader("currentMandantId", getCurrentMandant());
        }
   });
  </code></pre>
  
  <p>how to do the same thing for all other types of requests (not just Ajax)?</p>
  
  <p>thank you. </p>