ValidateOption AllowedFileExtensions

Last post 07-24-2013, 4:00 AM by kalees1980. 2 replies.
Sort Posts: Previous Next
  •  07-23-2013, 6:47 AM 77755

    ValidateOption AllowedFileExtensions

    Hi,

     

    I need to change the allowed file extensions during runtime on some condition. how do i do.

     

    The scenario is,

    If i select "A" in dropdown list, then uploader allowedfile extension is "xls"

    If i select "b" in dropdown list, then uploader allowedfile extension is "pdf"

     

    Thanks in Advance.

     

    Kalees

  •  07-23-2013, 1:02 PM 77757 in reply to 77755

    Re: ValidateOption AllowedFileExtensions

    Hi kalees1980,

     

    You can change the file extension by the code below.

     

    uploader1.ValidateOption.AllowedFileExtensions = "xls";

     

    Regards,

     

    Ken 

  •  07-24-2013, 4:00 AM 77762 in reply to 77757

    Re: ValidateOption AllowedFileExtensions

    Hi Ken,

     

    It works. Thanks

     

    Kalees

View as RSS news feed in XML