Hello there, I am brand new to this environment and have a question about using string[] arrays. Is it possible to retrieve the actual string value instead of just the index value when passing a string[] array as a parameter?
Check out the images below for reference: ajax pass this data into controller
I'm currently utilizing AJAX to send my data to the URL controller in C# MVC.
Feel free to take a look at my sample array data here: prepared data..
The highlighted portion is my array, and in my MVC # parameter, it's declared as string[] methodParam: highlighted parameter,
The non-highlighted parameters are functioning correctly. My goal is to access each individual string in methodParam. I attempted to useGetMethodParam.IndexOf("Date").ToString(), but I received an output of -1 which seems to indicate it's not available within context.
If you could provide any suggestions, clarifications, or comments, that would be greatly appreciated. Thank you! ;)