The requirement is to change the default SharePoint welcome page for a subsite and I used the following code:
SPFolder objFolder = newWeb.RootFolder;
objFolder.WelcomePage = "Lists/" + brandName + " TRAX Agenda";
objFolder.Update();
This is working except that in the Quick Launch, the welcome page item is highlighted/selected even if I navigate to another item. Does anyone have any ideas how I can reset the highlight/selection to the correct item?