views:

186

answers:

1

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
Thank you, i will search for these subjects
Gabriel
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
@Chris Lively: Enterprise Library is the devil.
tsilb
@tsilb: I've used it successfully for years. What do you not like about it?
Chris Lively
Data access was a simple, elegant operation until it came along.
tsilb