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
Chili!Soft ASP does not implement the default properties available under Windows NT 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 Linux systems, this file is located in [C-ASP_INSTALL_DIR]/lib-chilicom. On UNIX-based systems, this file is located in [C-ASP_INSTALL_DIR]/lib-mainwin, where [C-ASP_INSTALL_DIR] is the complete directory path of the Chili!Soft ASP installation directory.
The Chili!Soft ASP implementation of the MyInfo component is compatible with the libmyinfo.ini files produced by the Microsoft implementation. However, Microsoft implements libmyinfo.ini as an XML file, while Chili!Soft ASP does not.
The control makes use of no registry settings.
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>
The Chili!Soft implementation does not implement the default properties available under Windows NT Personal Web Services. You create your own properties as described in this topic.
None.
Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.