limit file number demo can't work when using personal defined insert button

  •  01-07-2012, 7:01 AM

    limit file number demo can't work when using personal defined insert button

    I'm success testing demo "multiple-files-upload-control-file-number", but when i define  "InsertButtonID='Uploader1Insert'", it always enable the upload button, below is my code, i test visible and enable attribute both in InsertButton and personal defined div Uploader1Insert, hope could get reply soon, thanks a lot
     
                base.OnPreRender(e);
                if (UploadAttachments1.Items.Count>= 3)
                {
                    Uploader1Insert.Visible = false;
                    UploadAttachments1.InsertButton.Enabled = false;
                }
                else
                {
                    Uploader1Insert.Visible = true;
                    UploadAttachments1.InsertButton.Enabled = true;
                }
     
View Complete Thread