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. Using ASP to Create a Website from Spreadsheets
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)
|Model||Part Number||Description||SIN 132-8 GSA Price|
|CMU-710||150-1224-01||Campus-Star Management Unit, including embedded SNMP agent in local FLASH memory and Software Usage License.||$1,435|
|CNS-700||150-1220-02||Campus-Star Chassis with slots for up to 14 Line Units, 14 Interface Modules, one CMU, and two Power Supplies (1, 3)||$1,914|
|CPS-720||150-1226-01||Campus-Star 100-240VAC Power Supply (2,3)||$619|
|CPS-730||150-1226-02||Campus-Star 48VDC Power Supply (2)||$619|
|PGTMS/CS||150-1296-01||Campus-Star Management Application for HP OpenView/ Windows (MS Windows 3.1)||$480|
|BP-014||150-2160-01||Blank Filler Panel Kit for Star Concentrator (Qty. 14 panels)||$93|
|(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.
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...