Jeditable - jQuery就地编辑插件在ASP.NET MVC 中的使用
? ? 前篇文章Jeditable - jQuery就地编辑插件使用介绍了jeditable 的使用,官方例子是PHP的。我们现在实现在ASP.NET MVC 中的使用介绍。本例是ASP.NET MVC3.
点击前
点击一文本后
? ? 我们实现jeditable的一些基本用法
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using JQueryEditableMVC.Models;namespace JQueryEditableMVC.Controllers{ public class CompanyController : Controller { // // GET: /Company/ public ActionResult Details() { return View(new Company() { ID = 17, Name = "Gowi", Address = "Maxima Gorkog 2", Town = "Belgrade" }); } public string UpdateLabel(string id, string value) { return value; } public string UpdateField(string id, string value, int CompanyId, string RecordType) { return value; } }}