Using Dreamweaver to achieve simple web search function

Source: Internet
Author: User

When browsing the company's Web site, customers often do a relatively simple query search for some products, this example will explain its implementation process.

Effect description

The customer can select a special query field in the page shown in Figure 86-1, enter the query data, and make a fuzzy query on the product, as shown in Figure 86-2.

Creative Ideas

Add Drop-down lists, text boxes, and buttons to the Index.aspx page to complete the Product search page, create a page that is the same as the Tree Catalog index display page in instance 85, and then set up the program to achieve product search.

Operation Steps

Step One Product Search Page Setup

(1) Add 4 rows to the "LEFTTB" table and set the style. Open index.aspx, add 4 rows to the LEFTTB table in Design view, and set the style, as shown in the rounded box in Figure 86-3.

(2) Add the control. Click the ASP: Drop down list button on the ASP.net shortcut menu bar to add a Drop-down list control for the newly added 2nd row, as shown in Figure 86-4.

(3) Add the list label and the corresponding value. Click the list Items button in the FieldList Property window of the newly added Drop-down list. Add 3 labels to the pop-up List Items dialog box, one labeled "Product number", with a value of "Cpid" and a label of "product name" with a value of "CPName"; a label is "product category , the value is "CPFL", and the result is shown in Figure 86-5.

(4) Continue to add a text box to the newly added row, set the ID to "Searchtxt" and add two buttons, one button is "search", the ID is "GOBT", and the other button is "advanced Search" with the id "TOPGOBT", and the result is shown in Figure 86-6.

Step two to achieve product search

(1) Switch to Code view, in the "

Note : For more wonderful tutorials, please pay attention to the triple web Design Tutorial section,

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.