The Site class holds static data pertaining to the site as a whole and mainly
information gathered from web.config. All
it's public properties are static and pre-filled so you should never need
to spawn or populate an instance of Site.
It's also worth remembering that this class is instantiated and filled on
every Page request, so setting or re-setting one of these from code
will have no effect on subsequent requests.
Todo: ConfigBool page
| Qualifiers |
Type |
Name |
Default |
Description |
|
string |
Chan_Site_Title |
"Powered By Chan" |
|
|
string |
Chan_Site_Keywords |
"" |
|
|
string |
Chan_Site_Description |
"" |
|
|
string |
Chan_Http_Root |
"http://localhost" |
NOT USED!? |
|
string |
Chan_Site_Root |
"" |
|
|
string |
Chan_Chan_Root |
"/App_Resources" |
|
|
string |
Chan_Frag_Root |
"/App_Fragments" |
|
|
string |
Chan_Temp_Dir |
"" |
TODO: Throw an exception if an upload control is used without this being set to a valid path |
|
string |
Chan_Page_Title_Position |
"Before" |
|
|
ConfigBool |
Chan_Form_AutoValidate |
"Unset" |
DEPRECATE |
|
ConfigBool |
Chan_Form_ClientValidate |
"Unset" |
Wether or not a submitted form should first be validated on the client using Javascript, when Unset it is left to each individual form to decide for itself. |
|
ConfigBool |
Chan_Site_NoScript |
"Unset" |
Wether or not Pages and Controls in the site generate Javascript. |