<%
' *****************************************************************************
'
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	This file define the set of Hook functions that can be customized to
'	override URL generations in the WBC Authoring Mode.
'
'	The set of Hook functions exposed are:
'
'	- Sub OnCustomizeAuthPreviewURL( ByVal pPosting, ByRef strURL )
'	- Sub OnCustomizeAuthSaveNewDlgURL( ByVal pPosting, ByRef strURL )
'	- Sub OnCustomizeAuthSaveURL( ByVal pPosting, ByRef strURL )
'	- Sub OnCustomizeAuthPreviewConnectedDlgURL( ByVal pPosting, ByRef strURL )
'
' *****************************************************************************


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the Posting Preview links URL generation in WBC Authoring mode.
'
'	@pPosting [in] - the Posting to be previewed.
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeAuthPreviewURL( ByVal pPosting, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Save New Page" dialog URL generation.
'
'	@pPosting [in] - the new Posting yet to be created
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeAuthSaveNewDlgURL( ByVal pPosting, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the URL generation to the ASP page that handles the saving
'	of a Posting (both new and existing).
'
'	@pPosting [in] - the Posting to be saved
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeAuthSaveURL( ByVal pPosting, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Preview Other Connected Page" dialog URL generation.
'
'	@pPosting [in] - the base Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeAuthPreviewConnectedDlgURL( ByVal pPosting, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Request.QueryString("ProductID")
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


%>