mvc error DtResponse does not contain a definition for PostEdit
mvc error DtResponse does not contain a definition for PostEdit
brendons
Posts: 39Questions: 14Answers: 1
Having an issue when trying to use PostEdit event with mvc controller
DtResponse response = new Editor(db, "TableName", "tblid")
.Field(new Field("blah"))
. Process(formData).Data();
response.PostEdit += (sender, e) => UpdateOtherThing(e.Values);
mvc throws this error "DtResponse does not contain a definition for PostEdit"
What am I missing?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It doesn't - it exists on the
Editor
object. You need to rearrange that code a little:See the examples here.
Allan