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 cleaner way to do this?
+6
A:
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.
JonH
2010-01-26 19:09:51
Thank you, i will search for these subjects
Gabriel
2010-01-26 19:10:56
Additional info: Look into the Enterprise Libary http://msdn.microsoft.com/en-us/library/dd203099.aspx The Hands-On Labs would be a great teaching tool for you.
Chris Lively
2010-01-26 19:22:07
@Chris Lively: Enterprise Library is the devil.
tsilb
2010-01-30 17:26:55
@tsilb: I've used it successfully for years. What do you not like about it?
Chris Lively
2010-01-31 19:11:27
Data access was a simple, elegant operation until it came along.
tsilb
2010-02-03 04:21:30