Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP MyInfo Component

The MyInfo component creates a MyInfo object that keeps track of personal information, such as the site administrator's name, address, and display choices. Typically, the administrator types this information directly into the Web server interface. However, you can set the values of the properties directly by using a script in an ASP page.

Note

Sun Chili!Soft ASP does not implement the default properties available under Windows Personal Web Services.

Each property of a MyInfo object returns a string. If a MyInfo property has no value set, the property returns an empty string.

Create new MyInfo properties for values that remain consistent throughout a site. You can create new MyInfo properties by simply assigning a string value to them. The following example creates the new properties DogName and DogBreed. These new properties are stored persistently along with the other MyInfo properties.

<%

MyInfo.DogName = "Snoopy"  

MyInfo.DogBreed = "Beagle"  

%>

The values of MyInfo properties are stored in the text file, libmyinfo.ini. On UNIX systems, this file is located in [C-ASP_INSTALL_DIR]/server/lib/sunos5_optimized, where [C-ASP_INSTALL_DIR] is the complete directory path of the Sun Chili!Soft ASP installation directory. On Linux systems, this file is located in [C-ASP_INSTALL_DIR]/lib-chilicom.

The Sun Chili!Soft ASP implementation of the MyInfo component is compatible with the MyInfo.xml file produced by the Microsoft implementation; however, Microsoft implements the text file as an XML file, while Sun Chili!Soft ASP does not.

Registry Settings: ASP MyInfo Component

The control makes use of no registry settings.

Syntax: ASP MyInfo Component

The MyInfo component is registered with the ProgID of "MSWC.MyInfo."

The following code in the global.asa file creates one instance of the MyInfo object. In this example, the object is given Session scope, but a MyInfo object could also be given Application scope:

<OBJECT

RUNAT=Server

SCOPE=Session  

ID=MyInfo

PROGID="MSWC.MyInfo">

</OBJECT>

Properties: ASP MyInfo Component

The Chili!Soft implementation does not implement the default properties available under Windows Personal Web Services. You create your own properties as described in this topic.

Methods: ASP MyInfo Component

None.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.