Relative Content

Tag Archive for asp.net-mvcparametersasp.net-ajaxquery-stringactionlink

How to pass parameters of a controller function with AjaxExtensions.ActionLink via request body?

I was using LinkExtensions.ActionLink (with HtmlHelper) to pass parameters to a function in a controller. It’s a significant amount of data that I convert to and from base64 using a model binder (an array of a custom non-primitive type). Normally, the parameters are routed through the URL query via a GET request, and I quickly hit the length limit of that (the base64 gets very long).