AsyncUpload AllowedFileExtensions Dynamically

3 posts, 0 answers
  1. Amit
    Amit avatar
    14 posts
    Member since:
    Sep 2012

    Posted 23 Jul 2012 Link to this post

    hello, 
    I am using AsyncUpload in ASP.Net with Vb . i want to add File Extension Dynamically from Code behind but it doesn't work. Below is my Code please help me if any one have idea its urgent

    Dim strIds as string=".wmv, .mp4, .pdf, .swf"
    Dim ids As String() = {strIds}
    Upload1.AllowedFileExtensions = ids

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2012 Link to this post

    Hello Amit,

    Try setting the AllowedFileExtension as shown below.
    VB:
    Upload1.AllowedFileExtensions = New String() {".wmv", ".mp4"}

    Thanks,
    Shinu.
  3. Amit
    Amit avatar
    14 posts
    Member since:
    Sep 2012

    Posted 23 Jul 2012 Link to this post

    Hello Shinu,
    Thannk you for quick replying but its not working 
     while i am geting file extension from sql database

    e.g.
    Dim
     strIds as string = "select FileExt from sqlserver"
Back to Top