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.
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.
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:
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.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.