How to pass multiple parameter to controller
im traying to change th href of my link to make it take two parametrs to
another function by JS. This should happen when i klick on an element.
Here my Js funktion that not working will
function Changehref(idProdukt, idOperation) {
document.getElementById("deleteIcon").href = "Order/DeleteItem?id=" +
idProdukt + "&operationId=" + idOperation;
}
this is my function im my Controller Order
public ActionResult DeleteItem(long idProduct, long idOperation)
{
var reg = new ProductRegistry();
reg.DeleteProductionOrderOperation(SQLConnection,
idProduct,idOperation);
return View("Details");
}
How to navigate to DeleteItem and send the parameters
No comments:
Post a Comment