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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravi PatelPosted Nov 2, 2016, 4:50 AM