Skip to content

Class: cWebAspClassicObject

Properties | Events | Methods | Index of Classes

Creates ASP-Style Web Component objects.

Hierarchy

Library: Web Application Class Library
Package: cWebAspClassicObject.pkg
Mixins: cCallInterfaceHelper_mixin

Description

The cWebAspClassicObject class is used to create component objects that can utilize ASP (Active Server Pages) server resources. These objects are specifically necessary if your application needs to work with ASP. Generally, this is not required as the Web Application framework does not depend on ASP. In other words, web views, web services, and HTTP handlers do not use ASP.

The cWebAspClassicObject class is designed to create ASP Web Browser objects. These objects contain complete stand-alone and independent data-entry units that may include their own DDO structure. The interfaces available in this class allow you to retrieve or send data from your ASP page. Methods within this object can be created and then published, making them available to your ASP script. These methods can utilize the data passed into them. Additionally, interfaces are provided that allow you to access other ASP request data (e.g., DoGetHtmlFormValue, DoGetHtmlQueryString). The methods can return data, which the ASP script can use as needed. Interfaces are also provided that allow you to send data directly to your response page (e.g., WriteHtml). The methods are published using the RegisterInterface message. They can be published within the Studio.

Sample

Use cWebAspClassicObject.pkg
Use DataDict.pkg

Use CUSTOMER.DD

Object oHelloWBO is a cWebAspClassicObject

    Object Customer_DD is a Customer_DataDictionary
        Send DefineAllExtendedFields
    End_Object    // Customer_DD

    Set Main_DD to Customer_DD

    Function HelloAgain string sFirst string sLast returns string
        string sReply
        Move ("Hello again," * sFirst * sLast - ", here we are again") to sReply
        Function_Return sReply
    End_Function

    Send RegisterInterface get_HelloAgain "get_HelloAgain" "string sFirst string sLast Returns string" ""
End_Object  

Legacy Note

Prior to DataFlex 19.1, the cWebBusinessProcess class was used to create various business process components. This class is now obsolete. While it still functions, it is no longer documented and can likely be replaced with a better class. If your cWebBusinessProcess class does not use any ASP resources, you should use the cWebComponent class. If your cWebBusinessProcess class uses low-level ASP resources, you should use the cWebASPClassicObject class. If your cWebBusinessProcess object is part of a legacy, pre-framework web application, you can continue to use cWebBusinessProcess objects and refer to older versions of DataFlex for documentation.