首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

Jeditable - jQuery就地编者插件在ASP.NET MVC 中的使用

2012-09-07 
Jeditable - jQuery就地编辑插件在ASP.NET MVC 中的使用? ? 前篇文章Jeditable - jQuery就地编辑插件使用

Jeditable - jQuery就地编辑插件在ASP.NET MVC 中的使用

? ? 前篇文章Jeditable - jQuery就地编辑插件使用介绍了jeditable 的使用,官方例子是PHP的。我们现在实现在ASP.NET MVC 中的使用介绍。本例是ASP.NET MVC3.

效果

点击前

Jeditable - jQuery就地编者插件在ASP.NET MVC 中的使用

点击一文本后

Jeditable - jQuery就地编者插件在ASP.NET MVC 中的使用

View

? ? 我们实现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;        }    }}

热点排行