如何使用sql datasourcs ....在asp.net中插入,更新,删除操作? [英] How to insert,update,delete operations in asp.net by using sql datasourcs ....?

查看:126
本文介绍了如何使用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


这篇关于如何使用sql datasourcs ....在asp.net中插入,更新,删除操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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