This example demonstrates how to upload and save files in edit mode.
Follow the steps below:
- Specify the control's EditItemTemplate property and add an upload control to the template.
- In the FileUploadComplete event handler, save files to a session.
- When the user saves changes, save the uploaded files to a database in the CardUpdating event handler.
- To allow the user to download files, use a hyper link control and add it to the grid's data item template.
- In the hyperlink's
Load
event handler, specify the control'sText
andNavigateUrl
properties. The general technique of using the Init/Load event handler topic.
- CustomException.cs (VB: CustomException.vb)
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
- FileDownloadHandler.ashx (VB: FileDownloadHandler.ashx)
(you will be redirected to DevExpress.com to submit your response)