To create a simple sample site:
First, launch the VS 2010 development environment, select "File" in the menu, select "New" in it, and then select "Web Site", the "New Web Site" dialog box will appear.
Second, in the New Web Site dialog box, in installed templates, select Visual C #, select ASP on the right. NET Web site option, click New Network
"File System", "File System", "http", "FTP" in the drop-down menu, respectively, refers to the site in the local file system, the HTTP protocol and
FTP protocol in the remote system, here we select "File System". Click the browse button to bring up the Select Location dialog box.
Three, in the "Choose Location dialog", this we depend on the situation. Here we choose "E:\Web\ Book on the source code \chapter01\ch1-1",
Click the Open button, go back to the New Web Site dialog box, click OK to complete the new Web site.
Four, click the "Source" button in the open page, modify the code, delete the contents of the label "
Site, delete the contents of both groups of labels <p></p>.
Five, click the Design button, type the TextBox control I dragged:, then drag the TextBox control from the Toolbox and enter the button I dragged
Control:, and then drag the button control from the Toolbox.
Six, choose "Start Debugging" in the Menu "Debug" or press the F5 key, or press the application to run on the toolbar. The first time you run the Web site, the "not enabled tune
Try the dialog box.
Seven, in the Debug not enabled dialog box, click the OK button to add the Webconfig file to the Web site system.
Eight, the result of the last run in the default browser is:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Dynamic Web Development Technology Learning 2:vs 2010 made as the first simple example Web site