Web Development Basics

An alternative way to get to the Internet Services Manager is to open the Computer Management Console. This console can be reached by right-mouse clicking on the "My Computer" icon on the desktop and choosing Manage from the pop-up menu. You can also get to the Computer Management Console through the Control Panel.

The Computer Management Console is a very useful console when it comes to managing your Web site. You can connect to other machines on your network and manage resources on those machines that are used by your Web site. For example, you can maintain the shares that are exposed by a remote machine. For a share, you can give the share name, path, and security rights. Shares are sometimes used for virtual directories in your Web sites. See page 10 for information on how to create a virtual directory.

Internet Information Services

E ® six a1 ei ill ¡§ a t Internet Information Serv

jj-gjl Default FTP Site kJ Default Web Site m-g^ Administration Web Site E-%. Default SMTP Virtual Server

Open Browse

Start 5top

New All Tasks

Delete Refresh Export List,.,

Name

Path

[^Scripts 'fllSHelp ¡H IISAdmin gpllSSamples

JgiMSADC Lj _vti_bin

.^Printers_

CrjistalReportWeb... ^QuickS tart _ ClassViewer CD images LJ _aspn LU _private Q _vti_cnf Q _vti_log Q _vti_pvt Z3 _vli_ script Cj _vti_txt ads.xml Ü ASPAdRotator.aspx *] ASPButton.aspH «] ASPButton_ai.aspx jj_:_

L0 Click + to expand the list of Web sites on the Web server ([+] changes to Fl).

c:\inetpub\scripts c: \winnt\helpViishelp C: \WIN N T ^Siistem32\inetsr v^iisadmin c: \inetpubSiissa triples cAp ogram files\oommon files^systemSmsadc

CAF ogram Files\Common Files^Microsoft Shared\Web Se...

CAV INNTSwebSpr inters cAP ogram FilesSMicrosoft Visual Studio.NET\Cr>istal Repo... CAF ogram FilesSMiorosoft.Ne AFrameworkSDK\SamplesV.. CAF ogram Files\Microsoft.Ne AFrameworkSDK\SamplesV..

File Edit View Favorites Tools Help

<J= Back - - g] I ^Search | ^Folders & | fê X ** | ¡Ü-

Address C:\Inetpub\wwwroot

Folders m Desktop

My Documents My Computer

[ HZj Documents and Settings Ç-Û Inetpub

EiHZj Admin5cripts ŒhÛ ftproot E3-CH iissamples G î>—I I mailroot 4l-C] scripts

_private ffl-O _vti_cnf +1 III _vti_log [+HZ] _vti_pvt +1 _j _vti_script jJ i^Go

Name 1

Size

Type

□ _aspx

File Folder

□ _private

File Folder

_| _vti_cnf

File Folder

r 1 _vti_log

File Folder

_l _vti_pvt

File Folder

D _vti_script

File Folder

_l _vti_txt

File Folder

Q images

File Folder

©_vtijnf.html

2KB

HTML Document

[flfhelp.gif

1 KB

GIF Image

[1] iisstart.asp

2KB

ASP File

|*liisstart.asp.new

2KB

NEW File

1*1 iisstart.asp, old

2KB

OLD File

|'i*l localstart.asp

8KB

ASP File

|at] localstart.asp.new

8KB

NEW File

1*1 localstart.asp, old

8KB

OLD File

[flf mmc.gif

1 KB

GIF Image

[flfpagerror.gif

3 KB

GIF Image

postinFo.html

3 KB

HTML Document

42.4 KB P, My Computer

Q Right-click Default Web Site to open the pop-up menu.

_O Click Explore.

■ The Windows Explorer displays the directory where the files for the Default Web site are located.

EN A TEMPLATE FILE

You can use template files to shorten the time it takes to program your applications. Template files also help promote more consistent use of programming standards.

Template files are files with common code that can be used across an application. For example, this book uses a template file, GenericTemplate.aspx, as a starting point for creating an ASP.NET Web page.

There are many repetitive lines of code in creating an application. For example, Web Forms have several lines of code that are very similar page after page, with the exception of the content between the HTML opening and closing tags, which changes.

After you have built several Web applications, you can determine the classifications of pages and components that you build. When you see patterns of repetitive code, this is an opportunity to make a generic template that you can create for future use.

Templates are commonly used in this book to help you learn a task. By using the templates, you can save time by not having to create the basic HTML code for every page.

You can simply open the file directly from the CD with your text editor. Or, to avoid going to the CD drive, you can copy the files onto your hard drive.

After opening the template and making the necessary changes, you may want to save the file to the Web server for later requests.

OPEN A TEMPLATE FILE

OPEN A TEMPLATE FILE

□ Start your text editor.

O Click Elte select All Files

The template file loads into Note: You can open

□ Start your text editor.

-0 Click File O Open.

Click 0 to select the folder that contains your Code Templates.

O Click Elte select All Files from the drop-down list.

Click to select a template.

-0 Click Open to open the template.

The template file loads into Note: You can open your text editor.

Note: If you installed the software from the CD, the path to the Code Templates directory is C:\Program FilesWisual ASPNe\Code Templates\ plus the filename for the specific html template, such as GenericTemplate.htm.

the template from the CD at D:\VISUALASPNEJ\Code Templates\

Was this article helpful?

0 0

Post a comment