Sideway
output.to from Sideway
Draft for Information Only

Content

ASP Server Components
  MyInfo Component
    File Name
    Syntax
    Parameters
    Remarkrk
   MyInfo Properties
    Syntax
    Parameters
    Return Values
   MyInfo Properties Examples

ASP Server Components

Some of the ASP server components are the common features found in dynamic web pages. These base ASP server components are provided to enrich the pre-made functions of ASP technology for making dynamic and interactive web pages. However, some IIS pre-made components are not installed for all version of IIS. Ad Rotator, Browser Capabilities, Content Linker, Content Rotator, Counters, Logging Utility, My Info, Page Counter, Status, and tools are not installed with IIS 6.0. However, if you upgrade your Web server from a previous version of IIS, the pre-made components are not removed. Some IIS pre-made components, ASP content rotator and nextlink,  are deprecated in IIS7. And most IIS pre-made components are either not installed with IIS7 or their usage is not supported.

MyInfo Component

The MyInfo Component can be used to create a MyInfo object that acts as a HTML tags holder on an ASP page for keep track of personal information, such as name of site administrator, address, and display choices. These information are defined as the properties of a MyInfo object so that the values of these properties can be set or retrieved diirectly through a MyInfo object on an ASP page. If no value is set to a pre-defined property, the property will return an empty string. Besides, new properties of MyInfo object can be created by simply assigning a string value to the new property. These new properties are stored together with other MyInfo properties permanently in the MyInfo.xml file. Any changes in the property of the MyInfo objects may need to restart the IIS services in ordered to make the changes written to the MyInfo.xml File.

MyInfo object can have various properties. In the personal web server, some properties of  personal information are implemented by the personal web service interface, how these properties of MyInfo object are not implemented on the IIS. The MyInfo.xml File may be s%WINDIR%\inetsrv\Data or %WINDIR%\inetsrv\ directory depending on the verson of IIS and the operating system.

File Name

The file name of the Content Rotator component is MyInfo.dll.

Syntax

Set MyInfoName = Server.CreateObject( "MSWC.MyInfo" )

Since only one MyInfo object can be created on a web site, using of the Server.CreateObject( MSWC.MyInfo) may cause the problem of creating more than one MyInfo object for the site. A better way to declare the MyInfo object is the using of a <object> tag in the Global.asa file.

<object
runat="Server"
id="MyInfoName"
progid="MSWC.MyInfo"
scope="Session">
</object>

Parameters

MyInfoName

The parameter "MyInfoName" is the name assigned to the instance of the MyInfo object created by the call using the Server.CreateObject or a <object> tag.

Remarkrk

The MyInfo component does not work with Internet Information Server 7 (IIS7).

MyInfo Properties

The properties of a MyInfo object is used as the item fields of the MyInfo object to set and retrieve the information stored in the Myinfo.xml file. Any changes in the property of the MyInfo objects may need to restart the IIS services in ordered to make the changes written to the MyInfo.xml File.

Syntax

MyInfoName. PropertyName

var=MyInfoName. PropertyName

MyInfoName. PropertyName=str

Parameters

MyInfoName

The parameter "MyInfoName" is the name of the instance of the MyInfo object to be set.

PropertyName

The parameter "PropertyName" is the name of the property of the MyInfo object instance to be set.

var

The parameter "var" is the variable name assigned to.

str

The parameter "str" is the string enclosed in quotation marks (" ") to be assigned to.

Return Values

Return values only available when the property is set to the pre-defined property of the  Web server. If no value is set to a pre-defined property, the property will return an empty string.

MyInfo Properties Examples

In the personal Web server for Windows 95, the <OBJECT> declaration is already included in the Global.asa file in the default virtual directory to create the MyInfo object for the default web site. Some personal properties is already set by the Web Service.

Value Description
MyInfo.PageType to return a numeric value describing the content of the information that can be set on the home page of the wizard PWS 4.0.
  1 = About My Company
  2 = About My Life
  3 = About My School
  4 = About My Organization
  5 = About My Community
MyInfo.PersonalName to return the name of the owner.
MyInfo.PersonalAddress to return the address of the owner.
MyInfo.PersonalPhone to return the phone number of the owner.
MyInfo.PersonalMail to return an e-mail address of the owner.
MyInfo.PersonalWords to return the text of the remarks about the owner.
MyInfo.CompanyName to return the company name of the owner.
MyInfo.CompanyAddress to return the business address of the owner.
MyInfo.CompanyPhone to return the companyk phone number of the owner.
MyInfo.CompanyDepartment to return the department name of the owner.
MyInfo.CompanyWords to return the other text on the place of employment of the owner.
MyInfo.HomeOccupation to return the occupation of the owner.
MyInfo.HomePeople to return the text to introduce the family of the owner.
MyInfo.HomeWords to return the text of the other about the owner.
MyInfo.SchoolName to return the name of the school owner.
MyInfo.SchoolAddress to return the address of the school of the owner.
MyInfo.SchoolPhone to return the phone number of the school of the owner.
MyInfo.SchoolDepartment to return the class of the owner or department.
MyInfo.SchoolWords to return the text of the other owners about the school.
MyInfo.OrganizationName to return the name of the organization that has been introduced in the site.
MyInfo.OrganizationAddress to return the address of the organization.
MyInfo.OrganizationPhone to return the phone number of the organization.
MyInfo.OrganizationWords to return the other text about your organization.
MyInfo.CommunityName to return the name of the municipality that has been introduced in the site.
MyInfo.CommunityLocation to return to the location of the municipality.
MyInfo.CommunityPopulation to return the population of the municipality.
MyInfo.CommunityWords to return the other text on the municipality.
MyInfo.URL (n) to return the n-th user-defined URLcorresponding to the description of the n-th link in MyInfo.URLWords.
MyInfo.URLWords (n) to return a string that describes the n-th user-defined link corresponding to the n-th URL in MyInfo.URL.
MyInfo.Style to return (URL that starts with '/') URL relative to the style sheet.
MyInfo.Background to return the background of the site.
MyInfo.Title to return the user-defined title of the home page.
MyInfo.Guestbook If the guest book is available on the site and to return -1. Otherwise, to return 0. The default value is "".
MyInfo.Messages If the private message form is available on the site to return -1. Otherwise, to return 0. The default value is "".

©sideway

ID: 130200010 Last Updated: 2/24/2013 Revision: 0 Ref:

close

References

  1. Active Server Pages,  , http://msdn.microsoft.com/en-us/library/aa286483.aspx
  2. ASP Overview,  , http://msdn.microsoft.com/en-us/library/ms524929%28v=vs.90%29.aspx
  3. ASP Best Practices,  , http://technet.microsoft.com/en-us/library/cc939157.aspx
  4. ASP Built-in Objects,  , http://msdn.microsoft.com/en-us/library/ie/ms524716(v=vs.90).aspx
  5. Response Object,  , http://msdn.microsoft.com/en-us/library/ms525405(v=vs.90).aspx
  6. Request Object,  , http://msdn.microsoft.com/en-us/library/ms524948(v=vs.90).aspx
  7. Server Object (IIS),  , http://msdn.microsoft.com/en-us/library/ms525541(v=vs.90).aspx
  8. Application Object (IIS),  , http://msdn.microsoft.com/en-us/library/ms525360(v=vs.90).aspx
  9. Session Object (IIS),  , http://msdn.microsoft.com/en-us/library/ms524319(8v=vs.90).aspx
  10. ASPError Object,  , http://msdn.microsoft.com/en-us/library/ms524942(v=vs.90).aspx
  11. ObjectContext Object (IIS),  , http://msdn.microsoft.com/en-us/library/ms525667(v=vs.90).aspx
  12. Debugging Global.asa Files,  , http://msdn.microsoft.com/en-us/library/aa291249(v=vs.71).aspx
  13. How to: Debug Global.asa files,  , http://msdn.microsoft.com/en-us/library/ms241868(v=vs.80).aspx
  14. Calling COM Components from ASP Pages,  , http://msdn.microsoft.com/en-us/library/ms524620(v=VS.90).aspx
  15. IIS ASP Scripting Reference,  , http://msdn.microsoft.com/en-us/library/ms524664(v=vs.90).aspx
  16. ASP Keywords,  , http://msdn.microsoft.com/en-us/library/ms524672(v=vs.90).aspx
  17. Creating Simple ASP Pages,  , http://msdn.microsoft.com/en-us/library/ms524741(v=vs.90).aspx
  18. Including Files in ASP Applications,  , http://msdn.microsoft.com/en-us/library/ms524876(v=vs.90).aspx
  19. ASP Overview,  , http://msdn.microsoft.com/en-us/library/ms524929(v=vs.90).aspx
  20. FileSystemObject Object,  , http://msdn.microsoft.com/en-us/library/z9ty6h50(v=vs.84).aspx
  21. http://msdn.microsoft.com/en-us/library/windows/desktop/ms675944(v=vs.85).aspx,  , ADO Object Model
  22. ADO Fundamentals,  , http://msdn.microsoft.com/en-us/library/windows/desktop/ms680928(v=vs.85).aspx
close

Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019