Shabbir Bhimani

Learning The Ins And Outs Of ASP

   Follow me on Twitter:   Shabbir Bhimani   April 10th, 2009

ASP contains text, HTML tags and different scripts. These scripts in an ASP file are executed on the server.Before learning ASP one should have knowledge of VBscript or Java script.ASP means Active Server Pages and this pages runs on Internet Information Services .ASP file is the same as HTML file it contains HTML, XML, and scripts and these scripts are executed on server.ASP files are saved with extension.asp.

Features of ASP

1.It edits, changes and add different contents to a Web page.

2.It replies to user queries and to data whish submitted from HTML forms.

3.Access any data or databases and return the results to a browser.

4.It also customizes a Web page to make it more useful for every users.

In ASP if variables are declared outside a procedure they can be changed by any script and if declared inside the procedure they are created and destroyed every time the procedure is executed.In ASP Response object this object is used to send output to the user and in ASP Request object this object is used to get information from the user. Application object in ASP is used to tie files together and to store variables.Application object contains information which is used my many web pages in the application.In ASP Session object is used to store information for a specific user session.In object data hold information of one specific user and one specific application .

Now let us see in details regarding Loops

Do While…Loop

Example

In this example “a<5″ and the instructions defines a response text and an increment of the variable “a”. In the example, a will be increased until it gets a value of 5. Then the loop will be abandon. one can use many statements within the loop.

Do Until….Loop

Example

In this example “a=5″, so a will increased until it is equal to 5 and then the loop will be abandon.

Select Case….End Select

Example

Comments

About The Author

Shabbir Bhimani is a developer in the field of Applications, web as well as database designing for more than 5 years now and is devoted to the optimization and usability of the code. Shabbir shares his development experience through his blog Code It Well and is an active member of Programming and web development forum.