I have this error getting data from editor edit in mvc c # controller
I have this error getting data from editor edit in mvc c # controller
Método no encontrado: 'System.String[] System.String.Split(Char, System.StringSplitOptions)'
[HttpPost]
public ActionResult ClientesNuevos()
{
var settings = Properties.Settings.Default;
using (var db = new Database(settings.DbType, settings.DbConnection))
{
var request = System.Web.HttpContext.Current.Request;
//var response = new Editor(db, "Com.Usuarios")
//.Model<ClienteNuevo>()
//.Field(new Field("Id"))
//.Field(new Field("Nombre"))
//.Field(new Field("Paterno"))
////.ReadTable()
//.Process(request)
//.Data();
DtResponse response = new Editor(db, "Com.Usuarios")
.Model<ClienteNuevo>()
.Process(Request.Form)
.Data();
return Json(response);
// DtResponse dtResponse = Editor.
// return Json(response);
}
// return new JsonResult() { Data = "", JsonRequestBehavior = JsonRequestBehavior.AllowGet };
}
This question has an accepted answers - jump to answer
Answers
Apologies - Editor 2.0.5 is going to drop soon with a fix for this. The fix for that issue was committed here.
Allan
I'm receiving this error when upgrading above editor 2.0.5 using nuget package manager and .net framework 4.8
Could you try using the dll from the .NET Framework download please? I think that should work correctly. I'll look into what might be causing this with the 2.0.10 package from Nuget.
Allan