And i have this edit button :
@Ajax.ActionLink(" ", "Edit", new { oid = item.memoOID }, new { id = "edit_" + item.memoOID })
I would like to populate the entity from the controller action “Edit” and send it to a dialog box defined below ( i want it to replace the new Domain.Model.memo() :
<div id="memoAddDialog" title="New Memo" style="display: none">
@Html.Partial("~/Views/Pat/newMemoDialog.cshtml", new Domain.Model.memo())
</div>
With this popup :
function OpenMemoDialog() {
$("#memoAddDialog").dialog("open");
}
$("#memoAddDialog").dialog({
autoOpen: false,
height: 575,
width: 900,
dialogClass: "positioning24"
});
I just dont know how to pass the value to that partial view and need some pointers; can anyone help ?
Try this one
In Controller
NOTE: In Ajax.ActionLink you must provide UpdateTargetId where you result will appear on Page