I've been given some 3rd party examples of dialog re-usage and I'm wanting to look at using some elements to pull values end users have selected, examples given have a JS function handling the selected value, how would I pass this to the controller action below? Any help or pointers would be massively appreciated.
View JS function
} function fileSelected(data) { var el = document.getElementById("fileId"); if (data) el.innerText = data.selected; else el.innerText = "None"; }
Controller action I'd like it to land
[HttpPost] public ActionResult fd(string Fid) { Debug.WriteLine(Fid); return View(); }