Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
查看控制器方法
.ClientEvents(events => { events.OnDataBinding("onDB"); })
正如 dbaseman 所说 - 插入操作发送表单值,这些值将用于生成带有新数据键的新记录。此外,默认情况下参数的名称称为id - 在更新操作方法中,您可以像这样检索它:
[GridAction] [AcceptVerbs(HttpVerbs.Post)] public ActionResult Update(string id) { // code.. return View(); }