Using UploadPersistedFile and making file upload mandatory

  •  10-18-2011, 7:20 AM

    Using UploadPersistedFile and making file upload mandatory

    I'm using UploadPersistedFile in an ASP.NET 4.0 form to ask the user to upload a photo, and I would like to make that upload mandatory.
    I can't simply use a RequiredFieldValidator because that won't accept the UploadPersistedFile instance as its ControlToValidate.
     
    So how can I enforce the file upload?
     
    Best regards, Marja 

    Regards, Marja
View Complete Thread