how to add required field validator to upload button

Last post 01-05-2009, 8:18 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  01-05-2009, 8:07 AM 47404

    how to add required field validator to upload button

    hi
    I need to add compulsory required field validation to file upload control . so that form should be submitted when the user has uploaded some file.
     
    in simple words, if i have 4 fields in my form along wth the uploader component, while filling the form i want that user must select some file using upload button. else it should show up a message "Please select to file to upload".
     
     
    thanks.
  •  01-05-2009, 8:18 PM 47433 in reply to 47404

    Re: how to add required field validator to upload button

    Hi,
    Currently the Uploader can't not be applied the validation control.
     
    while the uploader would do a postback to server after it upload a file,
     
    You can send a flag to client side after the file are uploaded.
     
    Or you can check our online sample :
     
    (it should be included in the download package)
     
    This example show how to start upload manually,
    Its code also show you how to check whether the user have selected files.
     
    Regards,
    Terry
View as RSS news feed in XML