Developing from Chaos
Developing from Chaos

A common problem with many businesses is that their data is not set up in any kind of relational database at some level. Oh, fun, it's always a big mess to go in and do anything with it without spending way more time than it's worth. What to do? ASP allows you to quickly create what you need to assemble a website without hand-wringing and develop a relational database on the way, making the time worth the trouble.

Work flow for this project. This article takes raw excel files, text files, anything the customer has to create a website using it. There are several ASP pages used only to assemble database tables from the original files. The final product of this is a website with basic linked navigation built from pricing files. An added touch is using VBScript to strip common words from the html and create meta tags with technical keywords for each product page during a pre-processing of the product page.

Architecture for the build consists of:

  • notes (which are extracted into a table by part number)
  • header (company name, basic navigation to homepage)
  • content (based upon existing HTML pages)
  • product page (created from the above with next-previous navigation)
  • keywords (using VBScript to parse the content into a table)
  • meta tags (inserting the keywords into product pages)
  • footer (standard footer for the page)
First is the raw data, an example is:
ModelPart NumberDescriptionSIN 132-8 GSA Price
CMU-710150-1224-01Campus-Star Management Unit, including embedded SNMP agent in local FLASH memory and Software Usage License.$1,435
CNS-700150-1220-02Campus-Star Chassis with slots for up to 14 Line Units, 14 Interface Modules, one CMU, and two Power Supplies (1, 3)$1,914
CPS-720150-1226-01Campus-Star 100-240VAC Power Supply (2,3)$619
CPS-730150-1226-02Campus-Star 48VDC Power Supply (2)$619
PGTMS/CS150-1296-01Campus-Star Management Application for HP OpenView/ Windows (MS Windows 3.1)$480
BP-014150-2160-01Blank Filler Panel Kit for Star Concentrator (Qty. 14 panels)$93
Notes:
(1) Price includes one Power Supply. Please specify either CPS-720 AC Power Supply or CPS-730 DC Power Supply for each Campus-Star Chassis ordered.
(2) Price for a second Power Supply or spares, if required.
(3) Specify either US Cordset (654-1033-02) for North America or EC-Cordset (654-1042-02) for Continental Europe with each CPS-720 AC Power Supply.

This is all on one spreadsheet of course, text notes mixed in with pricing and description. OK. To handle this takes the creation of a database and a few tables, I'll have to prepare the data semi-manually at first to save a lot of coding time, there's a trade-off between automating every step on a job, as you would for an enterprise, versus a situation where the code is basically one-shot data prep stuff and doesn't get used after that. Head down, it's cut and paste from Excel file to Access table field (after arranging the work-flow to find what fields go where in the database). The table named "content" contains a heirarchy of links for navigation, as well as the page information.

Notes are extracted into a table by part number. That's gns_dat_02.asp. Then product pages are created in a series of pages, pricing pages, and finally the index. It took about 6-7 versions to get it all worked out, but the results are perfect. Very useful.

NEXT   

Stuff

Previous versions of VBScript are CaseSensitive, this is written for the latest version.
Development Test System: Windows98, PentiumII 200MHz 128Mb
Personal Web Server 4.0 (IIS4), SQL7b3, Personal Oracle, Sybase

Author: T.Mallard, Seattle, WA
http://www.mallard-design.com/
Copyright 1999 Thomas Mallard, USA

 

Close    To Top
  • Prev Article-Web Design:
  • Next Article-Web Design:
  • Now: Tutorial for Web and Software Design > Web Design > ASP > Web Design Content
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Geek Tutorial
     

    Blogging Tutorial

      RSS Tutorial
      Podcasting Tutorial
    Graphic Design Tutorial
      Coreldraw Tutorial
      Illustrator Tutorial
      3D Tutorials
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial/ Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial/ Articles
     

    XML Style

      AJAX Tutorial
      XML Mobile
    Flash Tutorial/ Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial/ Articles
      Linux Tutorial
      Symbian Tutorial
      MacOS Tutorial
    Personal Tech
      Hardware Tutorial
      Software Tutorial
      Online Auction