使用J查询从gridview永久删除行

使用J查询从gridview永久删除行

本文介绍了使用J查询从gridview永久删除行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我正在使用j查询从数据库和网格中删除记录.

我已成功从db和gridview中删除了记录.

但是在执行其他操作(例如,编辑我的grdiview)后,保留其原始状态意味着已显示旧记录,但它们不在db中.

如何在jquery中同时在服务器端应用客户端更改?

任何答案将不胜感激.

代码:

Dear Friends,

I m using j query to delete records from db and also from grid.

i successfully deleted records from db and gridview.

but after performing some other actions like edit my grdiview retain its original state means old records displayed but they are not in db.

how to apply changes of client side on server side also in jquery?

Any answer will be appreciated.

code:

var row = $(this).parents('td').parents('tr');
row.remove();



此代码从gridview中删除选定的行,并在gridview中显示正确的行数.



this code remove selected rows from gridview and show correct no of rows in gridview.

var totalRows = $("#<%=grdUserIP.ClientID %> tr").length-1;



但是当我运行服务器端代码时,会在gridview中显示旧记录.



but when i run server side code show old records in gridview.

Dim Rows As Integer = grdUserIP.Rows.Count.




如何解决这个问题?

谢谢.




How to Solve This?

Thanks.

推荐答案



此代码从gridview中删除选定的行,并在gridview中显示正确的行数.



this code remove selected rows from gridview and show correct no of rows in gridview.

var totalRows =




但是当我运行服务器端代码时,会在gridview中显示旧记录.



but when i run server side code show old records in gridview.

Dim Rows As Integer = grdUserIP.Rows.Count.




如何解决这个问题?

谢谢.




How to Solve This?

Thanks.


var row =


这篇关于使用J查询从gridview永久删除行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 08:31