如何使用sql datasourcs ....在asp.net中插入,更新,删除操作?
问题描述:
如何使用sql datasourcs在asp.net中插入,更新,删除操作....?
How to insert,update,delete operations in asp.net by using sql datasourcs ....?
答
你永远不会对你的控件进行操作。您对数据源执行操作,并在更新后将控件绑定到数据。 SQL数据源是什么意思?您最好的选择是使用Entity Framework,或编写正确的SQL数据层
You never do operations on your control. You do operations on your data source, and just bind your control to the data once it''s updated. What do you mean by ''SQL Data sources'' ? Your best bet is to use Entity Framework, or write a proper SQL data layer
请参阅以下链接以获取详细的文章。
如何使用SqlDataSource轻松地在GridView中插入行 [ ^ ]
GridView Paging and使用SqlDataSource在ASP.NET中排序 [ ^ ]
这里 [ ^ ]是一个教程,可以帮助您轻松理解SqlDataSource。
--Amit
Refer the links below for detailed article.
How to easily insert row in GridView with SqlDataSource[^]
GridView Paging and Sorting in ASP.NET Using SqlDataSource[^]
Here[^] is a tutorial which will help you to understand the SqlDataSource easily.
--Amit
请点击以下链接
使用Asp中的DetailsView控件执行插入,更新和删除操作.net [ ^ ]
谢谢
Please follow the below link
Performing Insert, Update and Delete Operations using DetailsView Control in Asp.net[^]
Thanks