Previous PageNext Page

10.7 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 using a script in an ASP page.
 
Each property of a MyInfo object returns a string. If a MyInfo property has no value set, the property returns an empty string.
 
The Chili!Soft implementation does not implement the default properties available under the Windows NT.Personal Web Services.
 
You can create new MyInfo properties by simply assigning a string value to them. For example:
 

<%
MyInfo.DogName = "Snoopy"
MyInfo.DogBreed = "Beagle"
%>

creates the new properties DogName and DogBreed. These new properties are stored persistently along with the other MyInfo properties.
 
Create new MyInfo properties for values that remain consistent throughout a site.
 
The values of MyInfo properties are stored in a single text file, Myinfo.xml. The Chili!Soft implementation of the MyInfo control is compatible with the Myinfo.xml files produced by the Microsoft implementation.
 

10.7.1.1 Registry Settings

The control makes use of no registry settings.
 

10.7.1.2 Control Reference

The Counters Control is registered with the ProgId of "MSWC.MyInfo".
 
Create the MyInfo object one time by adding the following to the Global.asa file:
 

<OBJECT
RUNAT=Server
SCOPE=Session note: could be Application too.
ID=MyInfo
PROGID="MSWC.MyInfo">
</OBJECT>

The MyInfo Control exposes the following properties and methods.
 

10.7.1.3 Properties

See the Overview section of the control.
 

10.7.1.4 Methods

None.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page