且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新和删除没有数据库的gridview

更新时间:2023-12-06 17:15:28

首先,使用集合,即Array,List作为数据源。

请参阅此内容,

http:// www.aspsnippets.com/Articles/Binding-Arrays-to-GridView-in-ASP.Net.aspx [ ^ ]

http://www.aspdotnet-suresh.com/2010/12/v-behaviorurldefaultvmlo_21.html [ ^ ]



然后,就像使用数据库一样,对集合执行更新删除。

http://www.aspsnippets.com/Articles/GridView-CRUD-Select-Insert-Edit-Update-Delete-using -Single-Stored-Procedure-in-ASPNet.aspx [ ^ ]

http://www.aspsnippets.com/Articles/AJAX-CRUD-operations-创建 - 读取 - 更新 - 并删除 - 使用GridView-in-ASPNet.aspx [ ^ ]



-KR
First, use collection i.e Array, List as a datasource.
Refer this,
http://www.aspsnippets.com/Articles/Binding-Arrays-to-GridView-in-ASP.Net.aspx[^]
http://www.aspdotnet-suresh.com/2010/12/v-behaviorurldefaultvmlo_21.html[^]

And then, perform the update delete on collection just like you do using the database.
http://www.aspsnippets.com/Articles/GridView-CRUD-Select-Insert-Edit-Update-Delete-using-Single-Stored-Procedure-in-ASPNet.aspx[^]
http://www.aspsnippets.com/Articles/AJAX-CRUD-operations-Create-Read-Update-and-Delete-using-GridView-in-ASPNet.aspx[^]

-KR