I currently am trying to pass a value to a controller action and the integer i am trying to pass is too long. To overcome this, I have tried using new { trackingNumber = 9374869903500896631228d }
and changing the parameter type of my action to a double but then the value is passed in as 9.3748699035009E+21
instead of 937486990350089663128
. How can I change the below Html.ActionLink and controller action so that I can pass the value 937486990350089663128
to my action?
Action Link:
<div>@Html.ActionLink("Track Package", "TrackPackage", "Orders", new { trackingNumber = 9374869903500896631228 }, null)</div>
Controller Action:
public void TrackPackage(int trackingNumber) {
// .....do stuff with trackingNumber
}