Is there a control I can just drop on a page, and link it to a sql server table that will then list all the rows in the table and let me edit any of the columns?
Also the ability to add, delete rows.
Is there a control I can just drop on a page, and link it to a sql server table that will then list all the rows in the table and let me edit any of the columns?
Also the ability to add, delete rows.
查看SqlDataSource控件。您可以通过属性设置连接ConnectionString,也可以使用DeleteCommand和InsertCommand属性。
GridView然后,您可以使用 a将 DataSourceID 设置为 SqlDataSource 的 ID
您可以使用 asp.net 动态数据,它为您的表生成一个 CRUD 接口。
阅读更多
http://www.asp.net/web-forms/videos/aspnet-dynamic-data/getting-started-with-dynamic-data
http://msdn.microsoft.com/en-us/library/ee845452(v=vs.100).aspx