In the web project properties on the Web tab (VS2008) in the "Startup Actions" section or directly in the "Startup Options" section in other versions of Visual Studio. Select the "Do not open the page. Wait until a request from an external application" appears.
That should do the job. But you will probably need a browser to test it.
source
share