Controller.cs is:
public ActionResult ViewRequest(int id)
{
Job job = Jobs.GetJob(id);
return View(job);
}
It's view is:
@model model.Job
<fieldset>
<legend>Job</legend>
<div class="display-label">Name</div>
<div class="display-field">
@Html.DisplayFor(model => model.Name)
</div>
</fieldset>
@Html.ActionLink("Download", "Download", new { id = model.Id }) |
How do I open it as a model pop up
See Question&Answers more detail:os