如何在ASP.NET GridView中插入更新和删除行
问题描述:
您好b $ b
任何人请帮助如何使用gridview在sql server中插入,更新和删除数据。以多种方式
请帮助我
提前Thx
Hi
anyone pls help how to insert,update and delete data in sql server using gridview. in multiple ways
pls help me
Thx in advance
答
尝试搜索 Google [ ^ ]有时。我搜索了大约906,000个结果(0.29秒)。您也可以尝试搜索 Codeproject文章 [ ^ ]和 Codeproject问题和答案 [ ^ ]。
查看这些类似的主题和文章:
插入,更新,删除Gridview ......简单方法 [ ^ ]
在ASP.NET Gridview中插入,更新,删除,作为SQL Server的DataSource,MS Access(mdb / accdb),XML和Framework为2.0 / 3.0 / 3.5 / 4.0(VS 2005/2008/2010) [ ^ ]
可编辑的GridView在ASP.NET 2.0中 [ ^ ]
如何在网格视图中插入更新删除 [ ^ ]
网格视图插入,更新和删除 [ ^ ]- Amit
Try search on Google[^] sometimes. I searched and got About 906,000 results (0.29 seconds). You can also try searching on Codeproject Articles[^] and Codeproject Questions and answer[^].
Have a look at these similar threads and articles:
Insert, Update, Delete with Gridview ... Simple Way[^]
Insert, Update, Delete in ASP.NET Gridview, DataSource as SQL Server, MS Access (mdb/accdb), XML and Framework as 2.0 / 3.0 / 3.5 / 4.0 (VS 2005/2008/2010)[^]
Editable GridView in ASP.NET 2.0[^]
how to insert update delete in a gridview[^]
Grid view insert, update and delete[^]--Amit
您可以使用以下提到的链接完成您的任务。
在ASP.NET GridView控件中插入更新和删除行:
http://code.msdn.microsoft.com/Insert-Update-Delete-rows-b0a2d4e2 [ ^ ]
使用网格视图和ObjectDataSource插入,更新和删除:
HTTP://weblogs.asp .net / manojkdotnet / archive / 2009/10/11 / insert-update-and-delete-using-grid-view-and-objectdatasource.aspx [ ^ ]
我希望这会对你有所帮助。
You could use below mentioned links for your task.
Insert Update and Delete rows in ASP.NET GridView Control :
http://code.msdn.microsoft.com/Insert-Update-Delete-rows-b0a2d4e2[^]
Insert,Update and Delete Using Grid View and ObjectDataSource :
http://weblogs.asp.net/manojkdotnet/archive/2009/10/11/insert-update-and-delete-using-grid-view-and-objectdatasource.aspx[^]
I hope this will help to you.
你好,
你可以通过gridview以不同的方式执行这些任务
1使用
Hi,
You can perform those task in different way by gridview
1 using
onrowupdating,onrowdeleting and any predefined events.
2使用
2 using
RowCommand
但是在这种情况下你必须传递commandname以获得更多细节,你可以参考
http: //msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx [ ^ ]
谢谢,
but in this event you have to pass commandname for more details you can refer
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx[^]
Thanks,