The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Decimal' for method 'System.Web.Mvc.ActionResult Delete(System.Decimal)' in 'HasBroRMSApplication.Controllers.CommentTemplateController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters
mycode
@Html.ActionLink("Delete", "Delete", "CommentTemplate", new { id = @item.CommentTemplateID, onclick = "submitTest()" })
Updating Data
Are you sure to delete?
js
function submitTest() {
$("#mdlAlertmsg").modal('show');
alert('test');
}
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Ravi PatelRank #439 · 5.7K reputationPosted Nov 2, 2016, 12:50 AM EDT