Category Archive for: Active Server Pages

Modules and Class Modules

Code components are implemented in Visual Basic as Class Modules. Modules have existed in Visual Basic since its first version. They store variable declarations and code (questions and subroutines), which are available to all the other components of an application. Many of the examples developed in previous chapters have their own Modules. If the function Convert Temperature(degrees…

Read More →

Contacting ActiveX Components

Your Active Server Pages are not limited to the functionality provided by VBScript and the built-in objects discussed in this chapter. The CreateObject method of the Server object can do for your Active Server Pages what the CreateObject() function can do for your VB applications. It opens a door to the services of any existing OLE Server application, as…

Read More →

A Web Application

So far, we have examined how to build Web pages that interact with the Web server. A collection of Web pages forms a Web site. But how about Web applications? Are they special applications that run over the Internet? The answer is yes and no. They are client-server applications that run over the Internet, but they are not special…

Read More →

Using ActiveX Data Objects

The most important component of ASP is the Database component, which is nothing less than the ADO. I left this topic for last so that we can use the objects discussed earlier in this chapter to build more elaborate and practical examples. Although you can use other components to access databases on the server, most Web developers use…

Read More →

The Server Object

The Server object controls the environment in which the server-side scripts are executed. The single most important member of the Server object is its CreateObject method, which can create a new instance of an object from a registered class. The CreateObject Method This method Is identical to the Visual Basic CreateObjectO function. It accepts as an argument the…

Read More →

Basic Objects

To help you create Web applications, the Active Server provides the following objects that supply the functionality that is riot necessary (as is the functionality of the builtin objects), but that is commonly used in building applications for the Web. Database . This object provides connectivity to any ODBC-compliant database . or OLE DB data source. It is…

Read More →

Mixing Server-Side and Client-Side Scripts

An ASP rile can contain both server-side and client-side scripts. If you want to include a script section in your Web page, simply insert the scripting commands between the <SCRIPT> tags in the file. It shows the output of another ASP file that is a variation on the script that displays the server’s date on the client. The TlMESRVR.ASP page…

Read More →

Creating an Active Server Page

The simplest way to create an ASP page is to change the extension of an existing HTML document, from HTML (or HTML) to ASP.Then place the file in a new folder under your Web server’s root folder. In this chapter, all examples will reference ASP pages in the ASP pages folder, and you’ll find these examples in the…

Read More →

What Are Active Server Pages?

The situation changed drastically in 1996 with the introduction of Active Server Pages (ASP), an elegant solution to the problem of scripting. Active Server Pages are basically HTML pages that contain VBScript code, which is executed on the server. That’s why they.are also called server-side scripts or simply server scripts. The results of the VBScript statements (if any) are…

Read More →

Client-Server Interaction

It shows a-typical Web page that prompts the user to enter information, which will be used later to extract information from a database on the server. The site shown is Info seek, a widely used search engine on the Web. The search argument is “VB +books” (search for documents about “·VB” that also contain the word “books”) . When…

Read More →

Back to Top