I´m using this javascript array:
var exportOptions = [{
jobName: ""},
{exportType: ""},
{attachToEmail: ""},
{distributorName: ""},
{vistaNumber: ""},
{customerName: ""},
{competitors: ""},
{agreementType: ""},
{ annualPotential: "" },
{businessCase: ""
}];
And I passing to ASP.NET codebehind(C#) with this code:
$.ajax({
type: 'POST',
url: 'Epad.aspx/generateReport',
data: "{'columnList': '" + columnList + "', 'exportOptions':" + JSON.stringify( exportOptions ) + "}",
contentType: 'application/json; charset=utf-8',
dataType: 'json',
async: true,
cache: false,
});
And reading in C# with this method:
public static void generateReport(string columnList, Object exportOptions) {}
columnList is a string variable this values I can retrieved from C# but the exportOptions's values I cannot see in the debugger... I can see the names of the exportOptions array key in Object exportOptions(C# Object) but never pass the values...
Can anybody help me with this?