Disabling and Setting Features via the Registry
Overview | Properties | Methods
Some of the Upload Control's features (i.e. methods) can be disabled/enabled through the use of registry values in the "HKEY_LOCAL_MACHINE\SOFTWARE\Dundas Software\DundasUpload" key.
An exception will be thrown if a disabled method is called.
If a registry value does not exist or it is set to zero (0) then the method is enabled. However, setting a registry entry to any non-zero value will cause the corresponding method to be disabled.
You can also preset the value of any Upload control property to be read-only as well as having a specific value. To accomplish this just create a registry value (under the same key) with the exact same name as the relevant property and set it to the desired default. The type of the value depends on the data type of the property. If the property in question is a boolean or a numeric data type then the corresponding registry type should be a DWORD. A string property equates to a string registry data type. If the user attempts to change the value of a property which has been set to read-only via the registry then an exception will be raised.
Refer to the table below for a listing of possible registry entries and their corresponding methods:
Value |
Corresponding Method(s) |
DisableImpersonation |
|
DisableSecurity |
|
DisableRegisterServer |
|
DisableSend |
|
DisableDirectoryDelete |
|
DisableDirectoryCreate |
|
DisableFileCopy |
|
DisableFileMove |
|
DisableFileDelete |
|
DisableMemoryUpload |
|
DisableProgressBar |
UploadProgress Component creation |
NameOfRelevantProperty |
Default
value. You can set the default value of ANY Upload control property
by creating a key with the same name as the relevant property and then
setting its value to the desired default value. |