Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

OBSOLETE - How to upload files from the EditForm

$
0
0

This example is now OBSOLETE.
It was prepared for older DXperience builds (v7.3).

At present, we recommend using the solutions illustrated in the following examples:
E2933: Inserting of a new row in ASPxGridView with the image preview enabled
E95: Image Upload in ASPxGridView

OBSOLETE:
Use an UploadPanel to enable file uploading inside the EditForm of the ASPxGridView. A full postback is currently required to use the FileUpload component. You can still use the FileUpload by instructing the UpdatePanel to do a postback for this control. The ASPxGridView will still use callbacks. To Enable: Put a FileUpload component inside of the UpdatePanel. Put the UpdatePanel inside the EditItemTemplate. Set a Trigger for the UpdatePanel to do a FullPostBack when uploading a file. Now handle the file on the server-side as you need.

Question Comments

Added By: Matej Mihalik at: 8/14/2013 5:17:59 AM    

it not work for me... function UploadBtn_Click doesnt found ID FileUpload1 and Label1...why?

Added By: Mike (DevExpress Support) at: 8/14/2013 5:37:28 AM    

Please create a new ticket in our Support Center and describe the issue you have encountered in greater detail.
A sample project that illustrates the issue would be helpful.

Added By: Daniel Kaminski at: 10/23/2014 10:04:39 AM    

This is a great example but it would be a lot more useful if it showed how to actually save the file to the database. Any chances of adding that, even if it is commented out?

Thanks,
Daniel

Added By: Luke (DevExpress) at: 10/23/2014 12:18:24 PM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T164891: E19 example - How to actually save the file to the database. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>