This example demonstrates how to use ASPxUploadControl inside a custom Appointment Editing Form to load an image to a custom appointment field.
To accomplish this task, perform the following steps:
1. Create a custom Appointment Editing Form.
2. Create a custom AppointmentFormController class with corresponding additional properties for each custom field.
3. Override the AppointmentFormSaveCallback command to pass custom editor values to the mentioned AppointmentFormController properties.
4. Put the ASPxUploadControl onto a custom Appointment Editing Form.
5. Handle the ASPxUploadControl.FileUploadComplete event.
When an end-user have uploaded a file, the ASPxUploadControl.FileUploadComplete event is raised.
In this event handler, an uploaded file name (string) or uploaded file content (byte array) are obtain and save the required parameter in the appointment's source object.
The custom form contains the ASPxImage control which shows the uploaded image.