IntroductionThis article discus the steps of publishing website in Visual Studio 2010(asp.net 4.0). We are assuming that you already created your web application project and ready to upload it on the Window server. In this example we have taken sample web project shown in the diagram:
Step 1: Open the solution explorer (Hot keys Ctrl + Alt + L) , Solution explorer will open as above figure.
Step 2: Right click on the presentation layer .
Step 3: Then property window will open of the solutions explorer as given below in the figure.
Step 4: Click on the publish property of property window.
Step 5: Publish web window will open as shown in the picture below:
Step 7: Then you can choose your nearest selection and then click on publish button. If you want to publish website on local system then select File System method and then choose the location where to publish the website. Then click on Publish button.
Step 8: Now you have successfully published your website.