asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search








Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Archive
Writers
Code Samples
Components
Tools
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!

Simple Web-Database System Application
By Joung-ho Jay Jung
Rating: 3.8 out of 5
Rate this article


  • email this article to a colleague
  • suggest an article

    Introduction

    This application is for the beginners who wonder how to build their own web database system on their own computers. I will use Microsoft FrontPage98 and Microsoft Access in the demonstration. The reader should be familiar with the RDBMS concept and know how to use Microsoft Access tool to build a local database system. They should also have the Northwind.mdb file, which is included in Microsoft Office 97.

    Web Database System Application

    1. Importing a Database File

      1. Fire up FrontPage Explorer and open the FrontPage Web that is to contain the Northwind database.
      2. On the File menu, choose Import to display the import File to FrontPage Web dialog box.

      3. Click the Add File button, then point to the folder where the Northwind.mdb file is located, and then click the Open button to add a database file to the import list.

      4. Click OK to import a database file to your FrontPage Web.

      5. Check out whether the database file is on the file list or not.

    2. ODBC Connection

      1. Double click the My Computer icon, which is on your window screen, to open your computer’s Control Panel.

      2. Double click the Control Panel icon to open the Control Panel screen.

      3. Once the Control Panel screen is opened, double-click on the 32bit ODBC icon.

      4. ODBC Data Source Administrator will pop up on your computer screen. Then click on the System DSN tab to open the System DSN screen.

        5. Click on the Add button to put Northwind.mdb file on the list of System Data Sources.

      5. Select “Microsoft Access Driver” from the driver list and then click on the Finish button.

      6. Type the Data Source Name (DSN) (use whatever name you like) in text box along with a short description, and then click on the Select button.

      7. The Select Database screen pops up on your computer screen. Find the location of database file by scrolling through the list of Directories. After finding the database file, click on it. Then click on the OK button.

      8. The computer screen returns to procedure Step7, but this time the Setup box also provides the database’s location. Click the OK button.

      9. Now the Data Source Name (DSN), Northwind, shows up on the source list. Click the OK button. Finally, ODBC is set up completely for Web database connection.

    3. Generate SQL Query in MS Access
      1. Launch MS Access and open the Northwind.mdb file.
      2. In the Northwind database dialog box, click the Queries tab.

      3. Double-click the "Sales by Category" query to display the query results.

      4. The query result with field names (Category ID, Category Name, Product Name, and Product Sales) appears in the database screen.

      5. On the MS Access View menu, and choose Design View to modify the query.

      6. Deselect the check box below the CategoryID entry in the table.

      7. On the View menu, choose Datasheet View. Check that the CategoryID field has been successfully omitted.

      8. On the View menu, choose SQL View. Now, the actual SQL query is generated to create the search results.

      9. Copy this query to Notepad for later use.
    4. Format the Active Server Page
      1. Open the FrontPage Explorer, and click the FrontPage Editor icon, which is on the FrontPage Explorer's Tools menu. It displays the FrontPage Editor with a new page automatically.

      2. Position the cursor where you want the query results table to be displayed.
      3. On the FrontPage Editor's Insert menu, point to Database, then click Database Region Wizard.

      4. When the Database Region Wizard is displayed, type the name of the Data Source Name(DSN). The name you enter here should match exactly the DSN that was specified on the Web server. (In this example, we use "Northwind" as the DSN. This is the DSN we already specified through ODBC connection earlier.)

      5. Leave the Username and Password unchecked, and click the Next button
      6. Open the Notepad file that has a copy of the Sales by Category SQL. Copy all the SQL to the clipboard.

      7. Switch back to the Database Region Wizard on the FrontPage Editor screen and click the "Paste SQL From Clipboard" button to put the query in the input field.

      8. Click the Next button
      9. Click the Add field button When the Add field button displays, enter an actual database field name without spaces. To see the actual field names, switch to the Design View in Microsoft Access.

      10. Type the "CategoryName" without spaces between Category and Name, then click OK.

      11. Repeat steps 9 and 10 to insert the "ProductName" and "ProductSales."

      12. Click Finish to create the database region.
    5. Saving the Active Server Page
      1. After clicking the Finish button from the database region wizard, the "save file" message pops up in the FrontPage Editor screen.

      2. Click the OK button.

      3. On the FrontPage Editor's File menu, choose Save As.

      4. Type the file name for this page with an ".asp" extension.

      5. Click OK to save this page in the Web server file folder.
      6. Open the FrontPage Explorer window, and select the Folders View. Then check out whether the saved file is there or not.

    6. Preparing for Criteria
      1. Go back to the FrontPage Editor screen. Right-click the database region, and choose Database Region Properties.

      2. The Database Region Wizard pops up in the FrontPage Editor.

      3. Modify part of the SQL query.
              
              Where (((Orders.OrderDate) Between #1/1/94# And #12/31/94#))
                 ?    
              Where ((Categories.CategoryName = '%%CategoryName%%') And ((Orders.OrderDate) Between #1/1/94# And #12/31/94#))
        
        
      4. Click the Finish button to apply the changes.
    7. Formatting the Search Form
      1. Open the new FrontPage Editor.
      2. On the FrontPage Editor' s Insert menu, point to Form Field. Then click on One-Line Text Box.

      3. Double-clicking on the One-Line Text Box opens the Text Box Properties dialog box.

      4. Type the "CategoryName" in the Name field, and click the OK button.

      5. Click on the HTML view tab, which is at the bottom of FrontPage Editor screen.

      6. From the HTML View, reset the "action=directory name/file name."

        Note: Please remove all WebBot tags to insure that your HTML view looks like the above.

      7. Save the file as search.htm.
      8. Go back to the FrontPage Explorer screen and make sure all files are in the same folder.

      9. Open Internet Explorer or Netscape Navigator, and type the URL in the text field.

      10. Type the Product Category you want inside the browser's text box, and then click the Submit button.Let's try "Beverages."

      11. Here we go!

        About the Author

        Joung-ho is a senior MBA student at WSU with EE/MIS background. Currently, he works as part time Systems Analyst/Application Developer. He has developed many quality websites to help internal and external business operation (Intranet and Internet) based on an intensive analysis of Web Design Strategy including ASP, ISAP, PERL programming. He will be startign his Ph.D. program in MIS in autumn 1999. He can be reached at: joung-ho@wsunix.wsu.edu.

  • Rate This Article
    Not HelpfulMost Helpful
    1 2 3 4 5
    Other Articles
    Aug 7, 2002 - Using MySQL in the Win32 Environment
    Developers who don't want to spend a lot of money on SQL Server and who want a database that's more robust than Access may find MySQL to be a pleasant alternative. This introductory article covers the bare essentials for getting MySQL installed and running in the Win32 environment.
    [Read This Article]  [Top]
    Jul 17, 2002 - Software Development: Steps To Better Ensure Success
    There is never a guarantee of project success when endeavoring to build a sophisticated application. However, there are established steps to follow that will ensure a clear, concise scope, support for the team involved, and a solid opportunity for successful deployment.
    [Read This Article]  [Top]
    Jul 15, 2002 - Securing SQL Server for Web Applications
    If your SQL Server is exposed to the Internet, then hackers are probing it. This article shows how to secure a SQL Server database that's being used with a Web application
    [Read This Article]  [Top]
    Jul 1, 2002 - Protecting Your Web Application Against Dangerous Requests
    Enrico Di Cesare provides a solution for hiding and securing querystring values that pass through a url.
    [Read This Article]  [Top]
    Apr 2, 2002 - Object-Oriented Programming for VBScripters
    Feel intimidated by .NET? This article by Rob Chartier is designed to ease any level VBScripter (ASP) into .NET by clarifying some OOP concepts.
    [Read This Article]  [Top]
    Mar 27, 2002 - A Best Practice for Using ADO Objects
    A few members of the 15 Seconds discussion list talk about the proper way to use methods in order to prevent ADO object errors.
    [Read This Article]  [Top]
    Jan 2, 2002 - The ASP.NET Page Life Cycle
    Solomon Shaffer explores the life cycle of an ASP.NET page from initialization to unloading. He also explains the various methods to override ASP.NET server-side events.
    [Read This Article]  [Top]
    Dec 19, 2001 - Application Architecture: An N-Tier Approach - Part 2
    Rob Chartier creates a simple portable and reusable address book in .NET to demonstrate the power of N-tier application architecture. Complete source code included!
    [Read This Article]  [Top]
    Oct 23, 2001 - Application Architecture: An N-Tier Approach - Part 1
    Learn about N-tier application architecture and realize that developing with multiple layers produces a flexible and reusable application for distribution to any number of client interfaces.
    [Read This Article]  [Top]
    Oct 23, 2001 - Application Architecture: An N-Tier Approach - Part 1
    Learn about N-tier application architecture and realize that developing with multiple layers produces a flexible and reusable application for distribution to any number of client interfaces.
    [Read This Article]  [Top]
    Mailing List
    Want to receive email when the next article is published? Just Click Here to sign up.

    Support the Active Server Industry



    JupiterOnlineMedia

    internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info


    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

    Solutions
    Whitepapers and eBooks
    Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
    Microsoft Article: 7.0, Microsoft's Lucky Version?
    Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
    Avaya Article: How to Feed Data into the Avaya Event Processor
    Microsoft Article: Install What You Need with Windows Server 2008
    HP eBook: Putting the Green into IT
    Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
    Avaya Article: Setting Up a SIP A/S Development Environment
    IBM Article: How Cool Is Your Data Center?
    Microsoft Article: Managing Virtual Machines with Microsoft System Center
    HP eBook: Storage Networking , Part 1
    Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
    MORE WHITEPAPERS, EBOOKS, AND ARTICLES
    Webcasts
    Intel Video: Are Multi-core Processors Here to Stay?
    On-Demand Webcast: Five Virtualization Trends to Watch
    HP Video: Page Cost Calculator
    Intel Video: APIs for Parallel Programming
    HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
    Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
    MORE WEBCASTS, PODCASTS, AND VIDEOS
    Downloads and eKits
    Sun Download: Solaris 8 Migration Assistant
    Sybase Download: SQL Anywhere Developer Edition
    Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
    Red Gate Download: SQL Compare Pro 6
    Iron Speed Designer Application Generator
    MORE DOWNLOADS, EKITS, AND FREE TRIALS
    Tutorials and Demos
    How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
    eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
    IBM Article: Collaborating in the High-Performance Workplace
    HP Demo: StorageWorks EVA4400
    Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
    Microsoft How-to Article: Get Going with Silverlight and Windows Live
    MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES