This question is locked. New answers and comments are not allowed.
Sorry my english.
I use MVC3 with Razor
I use the example GridToolbarCrud but i change to mode PopUp Form.
Delete and update is working but Insert doesn't.
Controller:
bool bln_Upd = objElementoAdo.ElementoIns(p_objElementoDto);
objElementoDto.TipoConsulta = (int)ElementoDto.enumTipoConsulta.porParametro;
//Rebind the grid
return View(new GridModel(objElementoAdo.ElementoSel(objElementoDto)));
In View:
// "Create" button - when pressed shows the "new record" user interface
tools.Custom().Text("Novo").HtmlAttributes(new { onclick = "return beginInsert()" });
// "Insert" button - when pressed inserts the new record. Initially hidden. Shown when the "Create" button is pressed.
// tools.Custom().Text("Salvar").HtmlAttributes(new { onclick = "return endInsert()", style = "display:none", @class = "insert" });
above I comment the button "Salvar" (Insert)...
the return View(... is like the update command.
The insert into table is working but i receive error 500
what's wrong?
Tks
Paulo
I use MVC3 with Razor
I use the example GridToolbarCrud but i change to mode PopUp Form.
Delete and update is working but Insert doesn't.
Controller:
bool bln_Upd = objElementoAdo.ElementoIns(p_objElementoDto);
objElementoDto.TipoConsulta = (int)ElementoDto.enumTipoConsulta.porParametro;
//Rebind the grid
return View(new GridModel(objElementoAdo.ElementoSel(objElementoDto)));
In View:
// "Create" button - when pressed shows the "new record" user interface
tools.Custom().Text("Novo").HtmlAttributes(new { onclick = "return beginInsert()" });
// "Insert" button - when pressed inserts the new record. Initially hidden. Shown when the "Create" button is pressed.
// tools.Custom().Text("Salvar").HtmlAttributes(new { onclick = "return endInsert()", style = "display:none", @class = "insert" });
above I comment the button "Salvar" (Insert)...
the return View(... is like the update command.
The insert into table is working but i receive error 500
what's wrong?
Tks
Paulo