<%
' *****************************************************************************
' File:		CNCASPPageManager_DomainsBrowseDlg.inc
'			
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation
' Purpose:	Encapsulate the ASP logic associated with 
'			SiteServerDomainsBrowseDlg.asp
'
' Implements the INCASPPageManager interface:
'	- Sub InitManager()
'	- Property Error
'
' Exposes the following properties:
' *****************************************************************************

Const IDS_E_DOMAINBROWSE_NO_RESSERVERINDEX = "No ResServerIndex Present"


Class CNCASPPageManager_DomainsBrowseDlg

	Public Error
	Private m_nResServerIndex
	
	' ---- [Private] Class standard initialization routine
	Private Sub Class_Initialize()
		Error = ""
		
		m_nResServerIndex = -1
	End Sub
	
	' ---- [Public] InitManaer will take care of all programming logic in the ASP page
	Public Sub InitManager()
		If GetResServerIndex() = False Then
			Exit Sub
		End If
	End Sub

	' ---- [Public] The ResServerIndex property
	Public Property Get ResServerIndex()
		ResServerIndex = m_nResServerIndex
	End Property

	' ---- [Private] Retrieve the ResServerIndex we need for communication with SCAPI; return success flag.
	Private Function GetResServerIndex()
		If ( Request.QueryString(IDS_QUERYSTRING_RESOLUTION_SERVER_INDEX) <> "" ) Then
			m_nResServerIndex = CLng( Request.QueryString(IDS_QUERYSTRING_RESOLUTION_SERVER_INDEX) )
			GetResServerIndex = True
		Else
			Error = IDS_E_DOMAINBROWSE_NO_RESSERVERINDEX
			GetResServerIndex = False
		End If
	End Function
		
End Class

%>