Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping file upload control data on postback
Message
De
22/11/2011 08:38:15
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01528951
Message ID:
01529478
Vues:
41
>Well files can only be uploaded once. They don't 'post back'. So once you've uploaded it one way you have to reselect (unless you use some AJAX control).
>
>It's easy enough to validate file uploads seperately though from the rest of the input and then store some information about the file in the database. That way when the form proper is submitted you can do your validations as needed.

That would be another way.

But, if the submit fails at all, no trace of the file should remain on the server. So, this is why I prefer to have them all in one form.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform