Make dynamic website with noahweb performance layer

Source: Internet
Author: User
Tags file system iis connect mssql string dreamweaver
Web| News

First day before the start with the introduction of the point Noahweb concept bar: Noahweb has two complementary syntax: the presentation layer and the logic layer, wherein the presentation layer is designed to control performance effects, instructions very few. A total of 13 instructions, if the function to divide the words will be less! Altogether only 9, hehe, very few. Do not underestimate these 13 instructions, learn to use these 13 instructions have made a variety of beautiful dynamic Web site. Don't tell me you don't know what a dynamic website is! Dynamic Web site is the content of the Web page is the source of the database, the page content will be based on the content of the database dynamically displayed inside the page.

If you need more information about Noahweb, visit its main station:http://www.noahweb.net

OK, so much to say, first with you about the tools we need to use, the tool will be used in a lot of later learning.

Tools:

Tools: Noahweb Desinger Designer, Personal Edition is free to download, everyone to the Noahweb official site to download one, after installation activation can be legally used.

Tool bis: Macromedia Dreamweaver MX 2004, this tool must be familiar! Oh do the site can not use this? But this stuff is not free, we can pay attention to OH.

Install the operating environment:

Install Dreamweaver MX 2004 First, then download a noahweb Desinger designer, and note that you must have installed the Microsoft. NET Framework and IIS on the machine you are running before you install the designer. These environments are available to install the Noahweb Desinger Designer, the first time you run the designer will be prompted to activate the designer, very simple, the designer after the activation of all the required operating environment is ready.

It is also important to note that the designer needs to be installed after Dreamweaver MX 2004, so that the designer will be prompted to install a noahweb extension into Dreamweaver MX 2004 in the installation process, and restart Dreamweaver mx after installation of the extension 2004 You can "Insert" in the menu to see the contents of the following figure.

OK, the first day to learn so much! Today the installation environment is ready to become, hehe!

Today we learn how to build a site.

First run the Noahweb designer that is already installed on your computer, and you will be prompted with a site-managed window as follows:

Because it is just installed, the open site is empty.

We can set up a blank directory on the computer's hard disk to build the first site.

My choice of location is E:\webroot\mysite, which is established in the file system as follows:

Then in the Noahweb designer we can click "New" to add a site. Fill in the contents as follows:

When you're sure, we'll look at the list of sites available in the designer and the changes in the directory in the file system:

File system has a change in the directory, a few more directories and files

The directories and files in the file system are created automatically by the designer, and there's nothing in it for everyone to do. The designer will help you maintain.

Looking at the designer, you can see that you already have one more site to choose from:

Double-hit the site and see how the designer renders the following image:

The next step is to use IIS to publish the directory. We can find Internet information services in the Administrative tools and then configure the site, which refers to the e:\webroot\mysite below as shown in the figure:

Point to determine the site is established. Done! Hehe the next day to teach you so much.

Today is the third day, using Noahweb our aim is to make dynamic sites, so let's learn how to connect the site to the database through the designer.

Oh, the site built yesterday with a designer open, see the entire designer interface will be as follows:

Find "Resources" in the menu and select "Database Connection" and then click on the following figure:

The configuration interface for the database connection appears, and the mssql2000 database is selected, as shown in the following illustration:

Click "New" before clicking "Use MsSql2000 database in this project", and you will see a new Database Connection window, the name part to enter the name you want, and in the connection string part, enter the connection string used to connect the MSSQL. Remember, everybody. I am connected to a database called "demo". The following figure:

After you have entered, you can click "Test Connection" to see if the input is correct. As follows:

Oh, it worked! The point is OK after it is done. Then we open the "demo" Library of the specified connection in the Enterprise Manager of MSSQL2000 to build a new table inside, (the use of MSSQL will not elaborate.) Today is not to teach you how to do the database, hehe, the contents of the new table are as follows:

The newly created table is saved as "Mynews" in the Enterprise Manager of MSSQL, and then we go back to the designer and click on the "MyLink" button to select Refresh to see the table and structure we just created in the designer. The following figure:

Today, a lot of screenshots, written with difficulty, look at it is easy, exhausted me. Let's teach you all this today.

Next page



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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.