Dreamweaver MX 2004 Design Message This combat

Source: Internet
Author: User
Tags add date define definition iis table name dreamweaver access
dreamweaver| Design September The hottest news than the Macromedia Company's Studio MX 2004, friends are very concerned about the new software features, so let me through this message this tutorial with you to experience Studio MX 2004 Dreamweaver MX 2004 (hereinafter referred to as DW2004) bar.

   IIS (Internet information Services) installation configuration

Here, for example, Windows Server 2003 (hereinafter referred to as WIN2003). Since Win2003 is a server-level operating system, with IIS6.0, other versions of the system can select the check before Internet Information Services (IIS) in the Add or Remove Programs >> Add/Remove Windows Components dialog box, click Next Do the installation (note: The system installation disk should be placed to the optical drive before this).


Once IIS is installed, make a simple configuration. Navigate to the Start >> Manage Tools >>internet Information Services (IIS) Manager and open IIS Manager. Right-click on the local computer >> site >> Default Web site, select Properties from the shortcut menu (or select "Properties" directly under the Action menu) and pop Up the following dialog box:


Switch to the Home Directory tab (Figure 2), re-select the site root directory (the author selected is the work directory under E disk), the default is "system disk: \Inetpub\Wwwroot", because the system disk should not put too much of the system files, so here to reset the default site to the directory, If it's too much trouble to skip this step. Then switch to the Document tab, add, remove, move up, move down, and set the default document settings for the site as shown in the picture:

Some friends may wonder, what's the effect of setting a default content document? A careful friend should find out, when browsing the home page of some large sites with its first level domain name on the line, do not need to specify the file name of the request page, which is set the default content document, which is the role of the browser when the request does not specify the name of the document, the default document to the browser. For a more detailed explanation, you can click Help in Figure 3. This step is because the site's default content page is not index.asp, not in line with Chinese habits.

  Second, database design

First of all, a full-featured message should have what content should be saved? Visitor's name (name), Visitor's homepage (homepage), visitor QQ (QQ), visitor's mailbox (email), visitor image (ICON), guest IP (IP), message contents (content), message time (date)----This is information about visitors, What if the owner wants to reply to the message? OK, plus reply (Reply) and reply time (rdate), um ... And think about what's missing? Yes, there is also the owner of the management account: User name (Username), password (Password).

To save so much information, how should the database be designed? Guest's message is increasing, and the owner's management account is fixed, so should be divided into two tables, one to keep all the visitors ' messages and visitors ' information, the other is to save the owner's management account. OK, now you can start designing the database. Open access (available in Microsoft's Office software), create a blank database, Access prompts you to save the database, navigate to the folder where your message is located (I built a guestbook folder in the root directory of the site) and save it as Data.mdb:

Then double-click "CREATE table using designer" and finish as shown:


To optimize the database, some fields need to be set:

ID: Set as primary key to determine data uniqueness to ensure accurate positioning of records in management
Name: The field size is set to 15 (few people have such a long name?). )
Email: Field size is 20 (also rarely has email address length exceeding this number)
ICON: Field size is 6 (see the following tutorial to understand why it is so small)
IP: Field size is 15 (can be calculated, four three-bit long numbers plus three decimal points)
Homepage: Field size is 30 (many friends are still using the domain name of level two or even three, so relax a bit)
Date: The default value is now () (with now () to get the system time when the new record was inserted)

Close the table window to indicate whether to save changes to the table, select Yes, and then change the table name to main, and create TABLE admin to save the admin account number:


Finally also need a record IP address table, this IP library can be searched online, or to Http://x-lover.com/temp/ip.mdb download, and then open the database Data.mdb
, select "Get External Data >> import" Under the File menu, and then in the pop-up dialog box, select the database you just downloaded, import, select the Address table, and make sure that there are now three tables in the database Data.mdb:

So far, all the preparations are complete.

Program Run configuration is finished, nonsense not to say, directly start our DW MX 2004 Experience Tour bar.

  Third, the site definition of DW

In the previous section we defined the site root directory in IIS in E:\Work, and now go into this directory to create a new folder and name it Geustbook.

Open the DW and locate the "Manage Sites ..." Item under the "Site" menu, see the following figure:


Open the "Manage Site" dialog box, click "New ...", and select "Site" in the Drop-down menu to define the new site:



Follow the new Site Definition Wizard step-by-step to define our message board site. Fill in the Geustbook on the site name:

Click "Next>" to continue the next step of the background technology selection, where we choose to use VBScript as a scripting asp:


Click "Next>" to continue next to the site folder settings because we are now testing locally and the Gustbook folder is in E:\Work\guestbook, so set the following:


Click "Next>" to continue the next step to set the test URL for DW:

Click "Next>" to continue to the next step, because we do not need a remote server to participate in the native test, so select "No":


Click "Next>" to continue to the next step, here is the information we have just filled out, the purpose is to confirm that, if found to be wrong, we can point "back"


A careful friend may find that there are two tags on the site Definition dialog: "Base" and "Advanced", in fact, the use is the same, but "base" is step-by-step wizard mode, and "Advanced" is to the DW have some knowledge of the advanced mode of friends, Interested friends can switch to the "Advanced" mode to see.



Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.