In order to use the navigation from the parent site. The following code would help with that.
SPSite SiteCollection = new SPSite(http://laptopdev/eddy);
SPWeb Webopenme = SiteCollection.OpenWeb();
Webopenme.allowunsafeupdates = true;
Webopenme.Navigation.UseShared = true;
Continue reading about Sub site to use navigation from parent site