<div>
@foreach(var inmate in Model)
{
@inmate.inmateid
@inmate.inmateid
}
</div>
My Model is an IEnumerable of inmates containing 2 inmate objects. But the result I am getting in my browser is
6
6
7
7
Instead of
6
7
Please can someone tell me why this is the case?
Thanks
This post has been edited by Martyr2: 15 November 2012 - 12:24 PM
Reason for edit:: Please use code tags in the future, thanks! :)

New Topic/Question
Reply



MultiQuote




|