Global MethodsA Sandcastle Documented Class Library
The Global type exposes the following members.
Methods

  NameDescription
Private methodApplication_End
Private methodApplication_Error
Standard application error method, handles logging the error and sending out administrator email notifications.
Private methodApplication_Start
Private methodAppLogLogout
Helper method used to log the end of the session.
Public methodCheckUrl
This method is used to enforce the force https software trigger. Relies on forcehttps entry in settings.xml or Web.config app settings section.
Public methodStatic memberDataTableToJson
Converts a datatable to a JSON. Web config settings protect against overloading this feature with too much data.
Public methodGetAppString
Helper method that returns the requested string.
Public methodGetColumnInfo
Simplified helper method that gets the column info data from the database.
Public methodGetCoreTables
Simplified helper method that gets the core tables from the database.
Public methodGetCoreTablesActive
Simplified helper method that gets the active core tables from the database.
Public methodGetSecretKey
Returns a reference to the secret key.
Public methodGetServiceReference
Returns a reference to the service client.
Public methodStatic memberHasPerm
Returns true if the user has the current perm enabled.
Public methodLoadFilters
Loads a set of open filters from the given comma separated string.
Public methodLog
Generic logging shortcut call, for quick debug dumps.
Public methodPrep
Application prep method loads all setings from Web.config app settings or from settings.xml. Sets up debugging output streams if necessary.
Public methodStatic memberSafeAdd
Safely adds an object to the application cache.
Public methodSendErrorEmail
Used to send administrator notification emails. Requires adminemail, and senderroremail tags in settings.xml or the Web.config app settings section.
Private methodSession_End
Private methodSession_Start
Public methodSetBanner
Utility method for setting the current banner on the site before it is automatically determined based on GET request or the Session.
Back to Top
See Also