开发者

Why is ASP.NET data access so ugly?

开发者 https://www.devze.com 2022-12-17 23:41 出处:网络
I can\'t figure how to make a decent website without using the asp.net builtin data controls like SqlDataSource and DataGrid. Is there a 开发者_Go百科cleaner way to do this?Yes there is, you don\'t re

I can't figure how to make a decent website without using the asp.net builtin data controls like SqlDataSource and DataGrid. Is there a 开发者_Go百科cleaner way to do this?


Yes there is, you don't really need an SqlDataSource, theres a reason for web.config files and stored procedures. You're going to have to read about how to use ASP.net to connect to a database and how to pull data using parameterized stored procedures. Look up web.config file, connection strings, and system.data.sql.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号