Open a view as a pop up

前端 未结 2 903
孤城傲影
孤城傲影 2020-12-16 03:16

Controller.cs is:

 public ActionResult ViewRequest(int id)
        {
            Job job = Jobs.GetJob(id);

            return View(job);
        }
<         


        
2条回答
  •  庸人自扰
    2020-12-16 03:18

    Add a class to the link:

    @Html.ActionLink("Download", "Download", new { id = model.Id }, 
                                             new{ @class = "dialog"} )
    

    And add this script somewhere:

    
    

    Required CSS/JS

    • jQuery UI: https://jqueryui.com/

提交回复
热议问题