上記のアクションフィルタメソッドでアクションパラメータが必要です。あなたがこれを行うことによって、アクションパラメータを取得することができます私にOnResultExecutedアクションフィルタでActionParametersを取得する方法
Public Overrides Sub OnResultExecuted(filterContext As ResultExecutedContext)
Dim actionParameter = filterContext.ActionParameters(parameterName)
End Sub
var params={};
params.Comments=getvaluebyid("TxtComment");
$.ajax({
type: "POST",
url: '/ControllerName/ActionName',
async: true,
data: $.toJSON(params),
dataType: "json",
contentType: 'application/json; charset=utf-8',
OnResultExecutedアクションフィルタでアクションパラメータを取得する方法 –
C#で。 ' – mmushtaq
filterContext.ActionParametersは、OnResultExecutedで無効です。 –