Asp

Header data

Header data Getting all the header data of browser by using Request object ServerVariable in ASP When ever browser send request for a page to the server, along with the URL some more information also the browser provides to the server. This additional header information can be collected at the ...

Read More »

Session Variable

Session Variable Session ID and Object in ASP Session object in ASP are there to store user specific information. In most cases sessions are used to maintain state as the user navigates through different pages. Some data we can pass by using query string, web forms and cookies but session ...

Read More »

Login & Session Control

Login & Session Control Checking the session presence in ASP We can display a welcome message to a visitor inside a member area based on his session status. If the member has not logged in then we can ask him to login. You must have observed in many sites and ...

Read More »

File and Directory handling

File and Directory handling Reading data of a file by ASP File system object Using file System object we can read the content of a file. As we have already discussed FileSystemObject is used to check the presence of the file before we want to read. While reading the content ...

Read More »

Basic Control Structure

Basic Control Structure Relative and Virtual file Including in ASP Efficient coding requires reusable common code which gets linked to more than one file. In ASP we will be using file include to add codes inside one external file to our required file. There can be many reasons to use ...

Read More »

Form and request object in ASP

Form handling in Asp Form and request object in ASP Forms in web pages are very common. We can have signup forms to login forms and many other types of forms in our web pages. Through forms users submit data to the server or interact with the site. This is ...

Read More »

Declaring array in ASP

Declaring array in ASP We have seen how to declare variables in VBScript used in ASP. Now we will try to learn how we can declare and use arrays inside ASP code. Let us try using declare one array with fixed number of elements. Dim myArray(1) The above line declared ...

Read More »

MATH FUNCTIONS ASP

MATH FUNCTIONS ASP round function to format decimal place in ASP Round function is used to round of a number and format the number as per requirment. Round(5.768) will return 6 Round(5.368) will return 5 Round(0.768) will return 1 Round(-3.368) will return -3 We can format a number as per ...

Read More »

Finding Today date and time and changing the format on location

Finding Today date and time and changing the format on location In ASP using VBScript let us learn how to get present date, time in different formats. As we run ASP as a server side scripting process using VBScript as language, the time or date we will get is the ...

Read More »

Checking for patterns and validating the user inputs using Regular Expression

 Checking for patterns and validating the user inputs using Regular Expression Regular expressions is a powerful object of VBScript to use in any string matching and particularly in pattern matching. This is highly important to maintain data uniformity and prevents any malicious code or characters to enter to the ...

Read More »