Prev   Next

Back to the top of the FAQ

Q. Example of use with "code-behind"

A.

Running in .NET code in a "code-behind":

dim pathname as string
dim result as integer
pathname = "d:\customer1\"
Dim auth As New AUTHXOCXLib.AuthXOCXClass()
result = auth.AuthAdd(pathname) 
auth.flush()
auth.AuthDataAuthentiXDBEnabled(pathname) = False
auth.AuthDataODBCEnabled(pathname) = True
auth.AuthDataCustomSelect(pathname) = 2
auth.AuthDataODBCAdvancedUsage(pathname) = 1
auth.AuthDataODBCConnectString(pathname) =  "DSN=test;uid=test;pwd=test;"
auth.AuthDataODBCAdvancedString(pathname) 
	= "aulogin '$USERNAME$', $PASSWORD$', 'customer1'" 
auth.flush() 

Be sure that pathname = "d:\customer1\" has a trailing backslash, and be sure to use auth.flush().

Also, see here.

Back to the top of the FAQ

Prev   Next