Having issues where in my .aspx page I pass in a boolean variable (C#) to a javascript function that is expecting a boolean type.
BUt the C# variable returns True, and j
The other answers are targeting the old version, before Razor if you are using Razor then this is the solution
myjavascript( @MyBooleanVariableInCSharp.ToString().ToLower() );