TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sai Prasad Anumolu
NA
196
19.1k
an expression may not contain a dynamic operation in MVC
Aug 2 2014 7:05 AM
Error in View :
Model Is
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BorbaneApplication.Model
{
public class Country
{
public string CountryCode { get; set; }
public string CountryName { get; set; }
}
}
View is :
@using BorbaneApplication.Model;
@model BorbaneApplication.Model.Country;
@{
ViewBag.Title = "DisplayTable";
}
<h2>DisplayTable</h2>
<div>
<table>
<tr>
<th>Country Code</th>
<th>Country Name</th>
<th>Operations</th>
</tr>
@foreach(var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelitem =>item.CountryCode)
</td>
<td>
@Html.DisplayFor(modelitem=>item.CountryName)
</td>
</tr>
}
</table>
</div>
Reply
Answers (
2
)
how do I we get to know which all the check box's are TICKED
New Website