| STEP 1 |
 (Enlarge) |
Open Visual Studio 2008.
|
| STEP 2 |
 (Enlarge) |
Under the File Menu select "New Web Site".
|
| STEP 3 |
 (Enlarge) |
- Under "New Web Site" select ASP.NET Web Site.
- Specify Location as "File System".
- Specify Language as "Visual Basic".
- Type in the network path to the web server, a web site on that web server, and a folder that the project or "ASP.NET Web Site" will reside at.
|
| STEP 4 |
 (Enlarge) |
You will notice that a default web page has been created (Default.aspx).
|
| STEP 5 |
 (Enlarge) |
- Open "Default_aspx.docx" (the source code file mentioned at the top of this web page) with Microsoft Office Word 2007.
- Highlight and copy the contents of the page.
- Highlight the source code section of "Default.aspx".
- Paste the contents you had copied. This will remove the default code that was generated with what is contained in the docx file.
|
| STEP 6 |
 (Enlarge) |
Under Solution Explorer, expand "Default.aspx". The VB (code-behind) page will be revealed.
|
| STEP 7 |
 (Enlarge) |
- Right-click on "Default.aspx.vb.
- From the pop-up menu select "Open".
|
| STEP 8 |
 (Enlarge) |
- Open "Default_aspx_vb.docx" (the source code file mentioned at the top of this web page) with Microsoft Office Word 2007.
- Highlight and copy the contents of the page.
|
| STEP 9 |
 (Enlarge) |
- Highlight the source code section of "Default.aspx.vb".
- Paste the contents you had copied. This will remove the default code that was generated with what is contained in the docx file.
|
| STEP 10 |
 (Enlarge) |
- Under Solution Explorer, right-click on the network path.
- From the pop-up menu, select "New Folder".
|
| STEP 11 |
 (Enlarge) |
Enter the name of the folder as "MasterPages".
|
| STEP 12 |
 (Enlarge) |
- Under Solution Explorer, right-click on the network path.
- From the pop-up menu, select "Add New Item".
|
| STEP 13 |
 (Enlarge) |
- Select "Master Page".
- Under Name specify "Default_MasterPage.master".
- Under Language specify "Visual Basic".
- Check the option "Place code in separate file".
- Uncheck the option "Select master page".
- Click on the "Add" button.
|
| STEP 14 |
 (Enlarge) |
- Under Solution Explorer, right-click on the network path.
- From the pop-up menu, select "Cut".
|
| STEP 15 |
 (Enlarge) |
- Under Solution Explorer, right-click on the folder named "MasterPages".
- From the pop-up menu, select "Paste".
|
| STEP 16 |
 (Enlarge) |
The master page and its code-behind page should now be under the folder named "MasterPages".
|
| STEP 17 |
 (Enlarge) |
- Open "Default_MasterPage_master.docx" (the source code file mentioned at the top of this web page) with Microsoft Office Word 2007.
- Highlight and copy the contents of the page.
- Highlight the source code section of "Default_MasterPage.master".
- Paste the contents you had copied. This will remove the default code that was generated with what is contained in the docx file.
|
| STEP 18 |
 (Enlarge) |
Congratulations! We are now ready to build what we've put together.
Under the Build menu, select "Build Web Site".
|
| STEP 19 |
 (Enlarge) |
The build should succeed and you can now begin experimenting with Default.aspx by typing in the URL of that web page in your web browser and studying the output.
|