Bug or Missed Feature?
Scenario: Updating a data source in the context of a ASP.NET 2.0 application
Actors: ASP.NET 2.0, GridView, SqlDataSource
Story: You populate a GridView using the datasource, attach an UPDATE statement to the data source, write NO line of code, and try to update the underlying data source.
In any pre-Beta1 builds that worked just fine. Apparently, in Beta 1 you have to explicitly display the key column (say, customerid) and make it editable too. Otherwise, you get an error due to a missing @customerid parameter.
As of yesterday I would have called it a bug slipstreamed in the Beta 1 regardless of the controls. As of today, I'm not that sure it is a bug. It could be feature that we all missed because not documented yet. To have the Beta 1 update code work as expected, try changing @customerid (or whatever it is) with @original_customerid (or @original_whatever-it-is).
It works for me. And works for all broken examples in my Introducing ASP.NET 2.0 book.
What about you?