O'Reilly logo

Learning ASP.NET 2.0 with AJAX by Dan Hurwitz, Jesse Liberty, Brian MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Copying the Web Site with the IDE

You can also copy a web site from within the IDE. The advantage of doing it inside the IDE instead of in Windows Explorer is that you have a lot more flexibility. Not only can you copy the site to your local file system, but you can also simultaneously create an IIS virtual directory or copy it to an FTP or remote web site over the Internet.

In this example, we will copy the AdventureWorks web site to another web site, called AdventureWorksRevisited, in the same parent folder.

There are two equivalent ways to begin the process of copying a web site from within the IDE. One is to click the Website → Copy Web Site… menu item. The other is to click the Copy Web Site icon at the top of the Solution Explorer (see Figure B-6).

The Copy Web Site icon at the top of the Solution Explorer is a quick way to start the copying process.

Figure B-6. The Copy Web Site icon at the top of the Solution Explorer is a quick way to start the copying process.

Either way you do it, the Copy Web Site window will open in the middle window of the IDE, as shown in Figure B-7.

The Copy Web Site window looks like this when you first open it. You use the Connect button to locate the destination folder.

Figure B-7. The Copy Web Site window looks like this when you first open it. You use the Connect button to locate the destination folder.

Click the Connect button, indicated in Figure B-7, to bring up the Open Web Site dialog box shown in Figure B-8. This dialog is used to select the target destination of the copied ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required