I have SQLDataSource working to load a series of records in a GridView control. Works great for that, and I can insert and update using the SQLDataSource, also with no problem.
What if I want to load a single database row for editing on a form, with typical controls like text boxes - can I use SQLDataSource and some form of the select command, telling the SQLDataSource to put the right db fields in the right controls?
Seems like I should, but I have not found anything that discusses it (everything I have seen discusses a single databound control like a GridView, listbox, etc). Or should I just use the "old fashioned" way and use a DataReader? I can do that, but the declarative binding in ADO.NET 2.0 seems great, and I would love to use it fully.
Thanks in advance,
Jason
What if I want to load a single database row for editing on a form, with typical controls like text boxes - can I use SQLDataSource and some form of the select command, telling the SQLDataSource to put the right db fields in the right controls?
Seems like I should, but I have not found anything that discusses it (everything I have seen discusses a single databound control like a GridView, listbox, etc). Or should I just use the "old fashioned" way and use a DataReader? I can do that, but the declarative binding in ADO.NET 2.0 seems great, and I would love to use it fully.
Thanks in advance,
Jason