我是ASP.NET MVC应用程序的初学者。我要做的是创建一个表单,其中包含一些用户将要填写的输入,一旦用户单击了post按钮,我希望表单中的信息已经填满并准备好打印。我现在这样做的方式如下:
// the controller that returns the initial form using ReportCreate.aspx which creates a Html form
public ActionResult ReportCreate()
{
return View(viewData);
}
// my post action which gets the info
我有以下数组
var array = []; // It has (48.154176701412744,11.551694869995117),(48.15131361676726,11.551694869995117),(48.15555092529958,11.549291610717773) saved in it.
这就是我如何通过ajax发送到我的aspx页面的方式。
function result() {
var jsonText = JSON.stringify({ list: array });
$.ajax({
url: "te