Can be assigned any value
NewPage.AddToken "<##MyToken##>",
ProvidedData, "My text to replace token", ""
Token is
a user defined element, what ever value is given will be looked
for in the main template and replaced with what ever value is
assigned for that paticular token.
NOTE: token's are case insensitive, so if the template has a token
called <##MyToken##> and the add token for the template has
<##mytoken##> the class will make a match between the two.
GetRemote
NewPage.AddToken "<##MyToken##>", GetRemote,
"http://www.mysite.com/mypage.asp", ""
When the [Token Type] is GetRemote the class will retreive the
file specified via the HTTP GET protocol and find the token
within the template and replace it with the content of the page
retrieved.
PostRemote
NewPage.AddToken "<##MyToken##>", PostRemote,
"http://www.mysite.com/mypage.asp", "MyFormField=Test"
NewPage.AddToken "<##MyToken##>", PostRemote,
"http://www.mysite.com/mypage.asp", Request.Form("MyFormField")
When the [Token Type] is PostRemote the class will retreive the
file specified via the HTTP POST protocol and find the token
within the template and replace it with the content of the page
retrieved.
When using GetRemote the [Post Data] will be posted to the file
location specified in [Replace Token With]. The form fields
can be from the Request.Form collection or a set string.
DBFile
NewPage.AddToken "<##MyToken##>", DBFile,
"Select MyTokenData from TblHTML Where ID = 21", ""
To retreive a record from a data base place a SQL query in the [Replace Token With]. field name in the query is unimportant as the class will return the first column of the first row retrieved regardless of name of column and number of rows returned.