Today's small make up to take you to learn how to achieve VS2010 from the new site to visit the parents of the website, our learning process:
New Web site--iis configuration--Publish a site-visit a Web site
Everyone is not waiting for a hurry, the following into today's theme!
We are in the development of ASP.net, the first to learn is to create a new site on the platform, the so-called "big play Shing", is also such a truth, our site to publish the first step is to create a new site .
We first open the VS2010, as follows:
As shown in the above picture, click on the "website" and choose the development language "C #" to create a new empty Web site. As follows:
Let's select the location of the site and click on the OK button as follows:
There is only one webconfig file in the empty Web site. We're going to create a new page, as follows:
We click on "Add New Item" as follows:
We select "Web Forms" and click "Add", as follows:
We casually add something to the page, such as:
Second big step, let's look at how to create a new site in IIS and configure it.
We open "IIS," as follows:
We right click on "website" to create a new website, click "Add Site", as follows:
Then we do the related configuration, as above:
Note 1: The physical path we are currently selecting is an empty folder, and this file, when we publish the site, publishes the site's publishing file to this folder.
NOTE 2: Host name We do not fill, that is we in the application of the domain name and then fill in!
We click "" OK, as follows:
This completes the addition of the Web site in IIS! Next we'll see how to publish a website in VS2010!
Open the first big step to the new website, as follows
We right-click on the website and click "Publish Site" as follows:
Let's choose the path to the release, which is the path we add to the site in IIS, as follows:
We clicked on the position shown above and clicked on "Open" as follows:
We will not be able to send it if we click OK again. So the release is successful!
The final step, we'll take a look at how to visit the site and need to pay attention to the place!
We turn on IIS as follows:
We click on the right side of the position, as follows:
We can see the success of the visit! Isn't it great!
The above is a small set for everyone to summarize the VS2010 publish the entire process of the site, I hope to create sites, publish and visit the site are helpful.