The tab control shown resides in a master page that I called Person.master. This is also where I placed the main data source control that is used by each of the content pages.
<phdb:EntityDataSource ID="PersonDataSource" runat="server"
ProviderName="PersonProvider"
EntityTypeName="PhDb.BLL.Person, PhDb.BLL"
EntityKeyName="PersonId"
SelectMethod="GetByPersonId">
<Parameters>
<asp:SessionParameter Name="EntityId" SessionField="PersonId" Type="Object" />
</Parameters>
</phdb:EntityDataSource>
Notice the use of the SessionParameter object that retrieves the previously stored PersonId value. Some may prefer to pass the identifier value on the url and therefore would use a QueryStringParameter object instead.
This is a simplified version of the data model I am using for this example:
Person ( PersonId PK, FirstName, LastName, ... )
PersonAddress ( PersonId PK, AddressId PK )
Address ( AddressId PK, Title, Address1, Address2, ... )
AddressRole ( AddressRoleId PK, RoleName, ... )
AddressAddressRole ( AddressId PK, AddressRoleId PK )
Bobby Diaz
------------------------------------------
Member of the .NetTiers team
http://www.nettiers.com
------------------------------------------