Mapping foreign keys to primary keys in an Objectdatasource
I was having a tough time finding how to display database data from a primary key in a drop-down and then have the selected item show up in my business class object when it returned.
I wanted to do this using an Objectdatasource because I had to reference several different tables in order to display my data. As a newbie, I spent several days struggling on it when I found this set of tutorials on Microsoft’s MSDN site, specifically tutorial 20. These tutorials nicely cover the basics of data manipulation in ASP.NET using C# and the Objectdatasource.
I hope this helps other like me who are struggling with the same problem.
Leave a Reply