var e = document.getElementById('DropDownRouteID'); var routeById = e.options[e.selectedIndex].text; var mA = document.getElementById('MeasureA').value; var mB = document.getElementById('MeasureB').value; $.ajax( { type:'Get', url: 'SOEDefaultB2.aspx/GetData2', dataType: 'text', data: JSON.stringify({routeById: routeById, mA: mA, mB: mB}), contentType: 'application/json; charset=utf-8', crossDomain : true, success:function(results) { console.log('Success!'); debugger; ajaxData = results; }, error: function(xhr, status, error) { debugger; console.log(error); } });
public static string[][] GetData2(string route, string mA, string mB) { ... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)