C# Passing Related Tables Foreign Keys

Jul 24 2009 4:07 PM

Hi All,
I am a newby to ASP.net, C#. I have 2 tables Orders and OrderDetails. Table Orders has a PK of Order_RecordID and Table OrderDeatils has a PK Details_RecordID with a FK Order_RecordID. Using a 1 to many relationship. On the web page I have a formView for the Orders Table and a ListView for OrderDetails Table. No matter what I do I can't get the PK from Orders to populate OrderDetails FK. Does anyone know any code for this. I can't post code because the project is on a private network. Thanks