title: How to modify the HTML and BODY tags in an ASP.NET page without adding runat=server to the elements?
body: <p>In an ASP.NET web forms project that is not quite ready to be upgraded from 2.0 to 4.0 , there is a change that needs to be made to allow modifications to the HTML and BODY tags on the pages without adding runat=server to the tags which results in the 2.0 styled "ugly ids" like "ctrl_100..."</p>
  
  <p>For example, how could we change these using JavaScript, a Response Filter (the regex to find these specific tags would really help on this one), or something else...from:</p>
  
  <pre><code>&lt;html xmlns="//www.w3.org/1999/xhtml"&gt;
  &lt;body&gt;
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>&lt;html lang="jp=JP" xmlns="//www.w3.org/1999/xhtml" dir="rtl"&gt;
  &lt;body dir="rtl"&gt;
  </code></pre>
  
  <p>JavaScript seems like a possibility, but functions from the server-side could would determine the language and direction the page should have.</p>