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.