Name
Owner —
objTools.Owner( )
Synopsis
The Owner method returns -1 if the name and password submitted in the HTTP request header matches that of the site's administrator. Otherwise Owner returns 0.
Parameters
None.
Example
<HTML> <HEAD><TITLE>Site Tools</TITLE></HEAD> <BODY> Please select one of the following tools:<BR> <A HREF="update.asp">Update Page</A> <A HREF="comments.asp">Comments Page</A> <A HREF="search.asp">Search Page</A> <% Dim objTools Set objTools = Server.CreateObject("MSWC.Tools") ' Determine if the current user is the site administrator. ' If so, display a link to the admin tools. If objTools.Owner = -1 Then %> <A HREF="admin.asp">Admin Page</A> <% End If %> </BODY> </HTML>
Notes
This method is implemented only for users of Personal Web Server for Macintosh. For all other server platforms, this method always returns 0.
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.