如何在c#mvc中使用WebGrid和Jquery Json编辑,更新,删除? [英] How to Edit,Update,Delete using WebGrid and Jquery Json in c# mvc?

查看:94
本文介绍了如何在c#mvc中使用WebGrid和Jquery Json编辑,更新,删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如何在c#mvc中编辑,更新,删除使用或内联WebGrid和Jquery Json?



请帮帮我。



先谢谢。



Ankit Agarwal
软件工程师

解决方案

WebGrid在向用户发送时返回HTML表格。因此,一旦在流中,您就可以使用HTML标记了。为用户添加一个额外的列,以进入编辑[,和/或删除更新]状态,您将在该状态下让他处理表中的特定结果。



这样,您可以创建不同的页面,如编辑,删除,更新,只需将表格中的结果ID传递给该页面使用 QueryString [ ^ ]或UrlData [ ^ ]然后再让用户控制该结果。



Mikesdotnetting写了一篇关于这个主题的文章。阅读文章 [ ^ ]你一定会对WebGrid中的记录编辑和更新有足够的了解

Hello,

How to Edit,Update,Delete using or inline WebGrid and Jquery Json in c# mvc?

Please help me.

Thanks in Advance.

Ankit Agarwal
Software Engineer

解决方案

A WebGrid returns an HTML Table when sent down to the user. So once down the stream, you're having an HTML markup to work on. Add an extra column for the user to enter the Editing [, and or delete update] state where you will alow him to work on that specific result from the table.

This way, you can create different pages like "Edit", "Delete", "Update" and just pass the ID of the result from the table to that page using a QueryString[^] or the UrlData[^] and then let the user get control over that result.

Mikesdotnetting has written an article on this topic. Read that article[^] and you will surely get enough understanding about editting and updating the records in WebGrid.


这篇关于如何在c#mvc中使用WebGrid和Jquery Json编辑,更新,删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆