ASP.NET
  Home arrow ASP.NET arrow Page 4 - Building an In-Text Advertising System Und...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Building an In-Text Advertising System Under ASP.NET 3.5
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2009-01-13

    Table of Contents:
  • Building an In-Text Advertising System Under ASP.NET 3.5
  • Requirements
  • The General Situation
  • Database Design
  • Procedures

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building an In-Text Advertising System Under ASP.NET 3.5 - Database Design


    (Page 4 of 5 )

    As introduced above, the main data contained in the in-text ad system includes: ad keywords, the ad contents associated with the special keyword, the ad hitting record, and the website owner's information. Therefore, the database (in this case named 'ad.mdf') mainly involves four tables, i.e.keyArray,ad,hit, andsiteUser, respectively.

    Table Structure Definitions

    Next, let's delve into the above four tables one by one.

    1. keyArray

    The keyArray table is used to persist all the ad keywords. Note, for simplicity, we've not classified the keywords, while in real-life scenarios you must. Here are the descriptions of each of the fields defined in thekeyArray table:


    • Id: the id of the ad keyword

    • Name: the name of the ad keyword

    • Notes: remarks on the ad keyword


    More detailed information on the above fields is shown in Figure 6.


    Figure 6-the structure for the keyArray table 


    2. ad

    The ad table is used to persist all of the ad keyword related contents. In this case, per ad content will be rendered in a double-underlined hyperlink form. Here are the descriptions of each of the fields defined in the keyArray table:


    • Id: the id of the ad keyword related content

    • Keyid: the id of the corresponding keyword

    • Description: the link text of the ad content

    • url: the link address of the ad content


    More detailed information on the fields is shown in Figure 7.


    Figure 7-the structure for the ad table


    3. hit

    The hit table is used to record information related to ad clicks. Here are the descriptions of each of the fields defined in thehit table:


    • Id: the id of the record clicked

    • UserName: the account of the website owner

    • url: the advertiser's website address

    • Datetime: the date and time of the ad click


    More detailed information on the fields is shown in Figure 8.


    Figure 8-the structure for the hit table


    4. siteUser

    The siteUser tableis used to save the information related to the website owner. For simplicity, we've only provided a few fields defined in the siteUser table:


    • Id: the id of the special website owner related information

    • UserName: the login account of the website owner

    • Userpass: the login password


    More detailed information on the fields is shown in Figure 9.


    Figure 9-the structure for the siteUser table

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...
    - Building an In-Text Advertising System Under...
    - Developing a Mini ASP.NET AJAX Server Centri...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT