Archive

Posts Tagged 'ASP'

ASP - Creating a Guestbook for site

Requirements:

  • Server with IIS (Internet Information Service) or PWS (Personal Web Server), installed;
  • File creation. Mdb (Access format) to insert the messages generated by the visitors;

We'd like visitors to your site will leave the greetings or comments on your work? Now you can with this tutorial.

First we create the file that will contain the guestbook.mdb Access database. We create a table named script with the following fields:

  • ID: AutoNumber field, unique;
  • Name: Text field that contains the visitor's name, 255 characters long;
  • Date: Date type field;
  • Time: Time type field;
  • Text: Memo field;
  • Email: field of type text, 50 characters long.

In this tutorial you also insert the code for the pagination of the results, that you will see a number of records at a time, but you can also skip if you do not want to use.

the first few lines of ASP code to insert in the view page of existing records, which I will call index.asp, are as follows:

Continue reading ...

Tag: , , Categories: ASP Tags: , ,

ASP - Creating a counter for the site

Requirements:

  • Server with IIS (Internet Information Service) installed;
  • File creation. Mdb (Access format) by the number of visits;

Knowledge of ASP recommended:

  • Session variables;
  • The Global.asa file;
  • The # include statement;

In this tutorial I will explain how to create a counter for their website.

You must create an Access file containing a single field, called Views, numeric, belonging to the counting table, the filename will be contatore.mdb.

Then you have to create the Global.asa file to be included in the root directory of our site, this file is retrieved from the server each time a user accesses the site through the browser (eg Netscape or Explorer), and executes the code it contains in Application_OnStart functions () and Session_OnStart ().

If you close your browser window and then abandon the site will run the code inside the functions Session_OnEnd () and Application_OnStart ().

Not necessarily have to be present all four functions within the file, it depends on the needs of the programmer to use them all, some, or none.

Continue reading ...

Tag: , , Categories: ASP Tags: , ,

ASP - Creating a mailing list

Requirements:

  • Server with IIS (Internet Information Service) installed;
  • File creation. Mdb (Access format) to usernames and passwords of authorized users;
  • CDONTS component is installed on your server;

In this tutorial I will explain how to create your own personal mailing list. You must create an Access file containing a single field called Email, text type, the filename will be mail_list.mdb.

Then you need to create a form that contains a text field named email where the user can enter his email; in the action of the form write the name of the page to send the form data in my example will be attached modifica_mailing_list.asp.

Continue reading ...