Not able to set MetaDataAttribute in Dynamic Data field
===

i'm working on dynamic data file upload control

when i try to pass default value then it is not able to set it is null :(

code in  `class FileUpload_EditField .cs`

     protected void Page_Load(object sender, EventArgs e)
            {
    
                // get attributes
                fileUploadAttribute = MetadataAttributes.OfType<FileUploadAttribute>().FirstOrDefault();
    
    }

code in FileUploadAttribute.cs

     public class FileUploadAttribute : Attribute
        {
            public String FileUploadPath { get; set; }  
    
           public FileUploadAttribute()
            {
            // set default images folder
            FileUploadPath = "~/images";
            }
    }

then also it is null at 
      

 fileUploadAttribute = MetadataAttributes.OfType<FileUploadAttribute>().FirstOrDefault();

why so any clue?

