I have a custom error page that is being called successfully when I want it. At the top of the code I have an "Imports CfgLib" statement. Within CfgLib.vb I have code along the the following lines:
I then start debugging my project and the custom error page fires as expected and calls the CfgInitilaise function and I can step through the code of that function and verify that CfgHoldFolder is assigned. However, when control returns to the custom error page and I attempt to display the content of the CfgHoldFolder variable it displays "Name 'CfgHoldfolder' is not declared" although it will step through code that references the variable without crashing.
Where am I going wrong here please? I expected the variable to be available within the calling module (i.e. custom error page) and to contain the value assigned in CfgLib.
Code:
Public Shared CfgHoldFolder As String
Public Shared Function CfgInitialise() As Boolean
CfgHoldFolder = "\webtemplate\"
End Function
Where am I going wrong here please? I expected the variable to be available within the calling module (i.e. custom error page) and to contain the value assigned in CfgLib.