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
Pooja Chowdhury
NA
396
39.5k
listing data in mvc
Aug 24 2017 2:36 AM
i create a loop to show a list
<
table
>
<
tr
>
<
th
>
</
th
>
<
th
>
TeleGUID
</
th
>
<
th
>
Screen Name
</
th
>
<
th
>
Mobile Number
</
th
>
</
tr
>
@foreach (var item in Model)
{
<
tr
>
<
td
>
@Html.ActionLink("Edit", "Edit", new {
id
=
item
.TeleGUID }) %
>
|
@Html.ActionLink("Details", "Details", new {
id
=
item
.TeleGUID })%
>
</
td
>
<
td
>
@Html.DisplayFor(
modelItem
=
>
item.TeleGUID)
</
td
>
<
td
>
@Html.DisplayFor(
modelItem
=
>
item.TeleName)
</
td
>
<
td
>
@Html.DisplayFor(
modelItem
=
>
item.TeleMob)
</
td
>
</
tr
>
}
</
table
>
controller code is
[HttpGet]
public
ActionResult UserDetails()
{
UserdbEntities db =
new
UserdbEntities();
var tasks = from t
in
db.UserInfoes
select
new
{
t.GUID,
t.Name,
t.Mob,
};
return
View(tasks.ToList());
but i got an error
Reply
Answers (
7
)
how to send updated data by user through email to multiple
How many Document return in WEB API ??