|
Controller File:
public void Save()
{
.
.
var valueFromClient = System.Web.HttpContext.Current.Request.Form.AllKeys[0];
var ObtainedValue = System.Web.HttpContext.Current.Request.Form[valueFromClient];
.
.
// Sending the value to client side
Response.StatusDescription = new JavaScriptSerializer().Serialize(ObtainedValue);
}
}
Script File:
function OnUploading(args) {
var newdata1 = [];
newdata1.push({ name:"AAA"});
args.customFormData = newdata1;
}
function OnSuccess(args) {
console.log("value retured from server is :" + args.e.currentTarget.statusText);
} |