94 lines
3.5 KiB
HTML
94 lines
3.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
|
|
<TITLE>MyInfo Component</TITLE>
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
TempString = navigator.appVersion
|
|
if (navigator.appName == "Microsoft Internet Explorer"){
|
|
// Check to see if browser is Microsoft
|
|
if (TempString.indexOf ("4.") >= 0){
|
|
// Check to see if it is IE 4
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
|
|
}
|
|
else {
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
|
|
}
|
|
}
|
|
else if (navigator.appName == "Netscape") {
|
|
// Check to see if browser is Netscape
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
|
|
}
|
|
else
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
|
|
//-->
|
|
</script>
|
|
<SCRIPT LANGUAGE="VBScript">
|
|
<!--
|
|
Sub Window_OnLoad()
|
|
Dim frmContents
|
|
On Error Resume Next
|
|
If Not Parent Is Nothing Then
|
|
Set frmContents = Parent.Contents
|
|
If Not frmContents Is Nothing Then
|
|
frmContents.Window.TOCSynch_Click
|
|
End If
|
|
End If
|
|
End Sub
|
|
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
|
|
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
|
|
<META NAME="MS.LOCALE" CONTENT="EN-US">
|
|
<META NAME="MS-IT-LOC" Content="Internet Information Services">
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
|
|
<H1><A NAME="_myinfo_component"></A>MyInfo Component</H1>
|
|
|
|
<P>The MyInfo component creates a <B>MyInfo </B>object that keeps track of personal information, such as the site administrator's name, address, and display choices. Originally, the administrator typed this information directly into the Personal Web Server Web Site Wizard interface on older versions, and doing so created a formatted home page. However, you can set the values of the properties directly and retrieve them yourself to create your own home page. </P>
|
|
|
|
<P>After you change any of the MyInfo Component properties, the IIS Services may need to be restarted before the changes are written to MyInfo.xml.</P>
|
|
|
|
<H6>File Names</H6>
|
|
|
|
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=all>
|
|
|
|
<TR VALIGN="top">
|
|
<TD width=21%>MyInfo.dll</TD>
|
|
<TD width=79%>The MyInfo component.</TD>
|
|
</TR>
|
|
|
|
<TR VALIGN="top">
|
|
<TD width=21%>MyInfo.xml</TD>
|
|
<TD width=79%>The file that stores the values of the <B>MyInfo</B> properties.</TD>
|
|
</TR>
|
|
</TABLE><BR>
|
|
|
|
<H6>Syntax</H6>
|
|
|
|
<P>Create a <B>MyInfo </B>object once in the Global.asa file by adding the following lines to Global.asa:</P>
|
|
|
|
<PRE><CODE><B><OBJECT
|
|
RUNAT=Server
|
|
SCOPE=Session
|
|
ID=</B><I>MyInfoObject</I><B> </B>
|
|
<B>PROGID="MSWC.MyInfo"> </B>
|
|
<B></OBJECT></B>
|
|
</CODE></PRE>
|
|
|
|
<P><span class=le><B>Important</B></span></P>
|
|
|
|
<P>Only create one MyInfo object on your site. </P>
|
|
|
|
<P>You can create a MyInfo object with </P>
|
|
|
|
<PRE><CODE>Set MyInfoObject = Server.CreateObject("MSWC.MyInfo")
|
|
</CODE></PRE>
|
|
|
|
<P>but you run the risk of creating the object more than once. It is best to use the <OBJECT> syntax in Global.asa. </P>
|
|
<hr class="iis" size="1">
|
|
<p align="center"><em><a href="../../../common/colegal.htm">© 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
|
|
</BODY>
|
|
</HTML>
|