I am working on utilizing a javascript XMLHttpRequest object to send a post request to my action method.
Here is my current setup:
xmlhttp.open('POST', '../Employees1/HandleFileUpload', true);
My action method does not currently take any parameters:
public PartialViewResult HandleFileUpload() {
}
If I want to modify my action method to accept one argument, how should I adjust the .open
method?
public PartialViewResult HandleFileUpload(int year) {
}