0 Project
In my view I have a hidden filed which has a UserID
. This user id is generated upon an action (so this will not be know prior)
Once this
Maybe something like this would work. Put you action link in a div and modify it with jquery on the client side.
@Ajax.ActionLink("Edit", "EditUser", "User", new { UserID = "$('#GetNewPatientID').val()" },
new AjaxOptions
{
OnSuccess = "ShowEditUserForm",
UpdateTargetId = "EditUserDetails",
InsertionMode = InsertionMode.Replace,
HttpMethod = "Get"
}, new { @class = "button", id = "EditUserButton" })