jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

ODataController action method is unable to catch array of string values snet from angular post method

Open jitendrasabat opened this issue 10 years ago • 1 comments

I am sending a ajax request from angular based post method to ODataController action method.If i am sending a simple string,that is caught by OdataController action method.Sending an array fails to capture data at controller level.Is there any alternative by which i can achieve this? I need to pass multiple string values at a shot to controller.Any help this will be highly appreciable.

jitendrasabat avatar May 23 '14 12:05 jitendrasabat

Stupidly dirty, but couldn't you just pass the string as a whole and perform a string.split() after the Controller receives it?

menkari avatar Jan 21 '15 23:01 menkari