I have a public property returned from my code-behind class to aspx page:
window.MyWIndow.IsFull = '<%=this.IsFull%>';
In code-behind it is defined this way:
public bool IsFull
{
get;
set;
}
Now, when I use it in my javascript file, I have the following code:
var isShow = myself.IsFull;
This way isShow is either 'True' or 'False'
I need to convert it on the page level, so isShow is boolean instead of string.
So I can write the if else logic
How can I do it?