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
prabhu p
NA
181
113.1k
Need a solution for Error in viewpage MVC
Jan 22 2018 6:40 AM
I am getting error
"cannot convert lambda expression to type bool because it is not a delegate type"
In mvc view
Line
@for (int i = 0; i < Model.Count(); i++)
{
<tr>
@if(m => m[i].Selected=="1") //errorline
{
}
<td>
@Html.CheckBoxFor(m => m[i].Selected, new { @checked = "checked" })
</td>
<td>
@Html.DisplayFor(m => m[i].Text)
@Html.HiddenFor(m => m[i].Value)
@Html.HiddenFor(m => m[i].Text)
</td>
</tr>
}
Reply
Answers (
2
)
How to avoid the Page Refresh when date selected time
How to Reload Div Content after ajax success