In my model I have one int object and a boolean array:
public class mymodel
{
public int Round { get; set; }
public Boolean[] lstLabs { get; set; }
}
In my view I write this :
<script type="text/javascript">
var objModel = {
Round:"@Model.Round",
lstLabs: "@Model.lstLabs"
};
</script>
I get only the value of Round (the int object) , but I can't get the array , I just get this : lstLabs : System.Boolean[] , I tried : lstLabs: @Model.lstLabs.slice() but it didn't work , I got the same thing...
Can anyone help me ?
Thanks in advance.