The following documents show the best practice for coding in ASP.NET and C#. There’s also a Web Deployment document to show how to deploy projects without overwrite the web.config file and deleting test pages and SubVersion files.
How to set the default page for a website in the MSI?
After adding a web setup project to the solution, you will need to right click on the setup project and choose ‘File System’ (File System Editor). If you then right click on the ‘Web Application Project’ and view the propertie, you will be able to set the default page for the website and other properties as well. Just enter the name for the default page you want (search.aspx for eg) in the DefaultDocument row and your default page will be set in IIS.