The object is been declared from the View when it is brought in from the model. I can access the item.price object from outside the
, it might just be a basic miss understanding. value="50.00" I would like to be able to have value= <%item.price>% or something similar. Thanks
<% foreach (var item in Model) { %>
<%= Html.Encode(item.Id)%>
<%= Html.Encode(String.Format("{0:F}", item.Name))%>
<%= Html.Encode(item.Description) %>
<%= Html.Encode(String.Format("{0:F}", item.Price)) %>
<%if (Roles.IsUserInRole("FullMember") == false)
{%>

<%}
else
{ %>
<%=Html.ActionLink("Read", "ViewItem", "item", new {itemID = item.Id,itemName = item.Name, itemDescription = item.Description, itemFullArt = item.FullArt, itemPrice = item.Price }, nul