title: Trying to pass in a boolean C# variable to a javascript variable and set it to true
body: <p>Having issues where in my .aspx page I pass in a boolean variable (C#) to a javascript function that is expecting a boolean type.</p>
  
  <p>BUt the C# variable returns True, and javascript doesn't like the uppercase.</p>
  
  <pre><code>myjavascript( &lt;%= MyBooleanVariableInCSharp %&gt; );
  </code></pre>
  
  <p>If I convert the c# variable to string, then my javascript variable becomes a string and not a js bool value!</p>
  
  <p>what is the solution to this nightmare? lol</p>