Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 28, 2012 05:36 PM by moy7
Member
52 Points
86 Posts
Mar 19, 2012 04:59 PM|LINK
well here is my problem: i have the index view wich is a @model IEnumerable<Project.Incident> and i want to show data in the same view from other view @model IEnumerable<Project.JournalEntry>. the index view have links and i want that when i click one, get data from @model IEnumerable<Project.JournalEntry> is like HTML with iframes
All-Star
135142 Points
21676 Posts
Moderator
MVP
Mar 19, 2012 08:57 PM|LINK
And what relation is between an Incident and a JournalEntry?
21343 Points
1818 Posts
Microsoft
Mar 21, 2012 07:15 AM|LINK
Hi
You can put it in the partial view.
Hope this helpful Regatrds Young Yang
Mar 28, 2012 05:36 PM|LINK
here was my solution if some body have the same problem:
view:
@Html.Action("DetailsEntry", new { JournalID = Model.ElementAt(grid.SelectedIndex).ID })
controller:
[ChildActionOnly] public ActionResult DetailsEntry(Guid JournalID) { /*code*/
}
and with this i show the detailsentry view in the home view
moy7
Member
52 Points
86 Posts
Show data in the same view
Mar 19, 2012 04:59 PM|LINK
well here is my problem:
i have the index view wich is a @model IEnumerable<Project.Incident> and i want to show data in the same view from other view
@model IEnumerable<Project.JournalEntry>. the index view have links and i want that when i click one, get data from
@model IEnumerable<Project.JournalEntry> is like HTML with iframes
ignatandrei
All-Star
135142 Points
21676 Posts
Moderator
MVP
Re: Show data in the same view
Mar 19, 2012 08:57 PM|LINK
And what relation is between an Incident and a JournalEntry?
Young Yang -...
All-Star
21343 Points
1818 Posts
Microsoft
Re: Show data in the same view
Mar 21, 2012 07:15 AM|LINK
Hi
You can put it in the partial view.
Hope this helpful
Regatrds
Young Yang
Feedback to us
Develop and promote your apps in Windows Store
moy7
Member
52 Points
86 Posts
Re: Show data in the same view
Mar 28, 2012 05:36 PM|LINK
here was my solution if some body have the same problem:
view:
@Html.Action("DetailsEntry", new { JournalID = Model.ElementAt(grid.SelectedIndex).ID })
controller:
[ChildActionOnly]
public ActionResult DetailsEntry(Guid JournalID)
{ /*code*/
}
and with this i show the detailsentry view in the home view