Customize Appearance of Button and Progress Panel

  •  07-07-2014, 3:42 PM

    Customize Appearance of Button and Progress Panel

    I'd like to do the two following things:

     

    1) Customize the Button control that is clicked to begin select files and to begin uploading.  I've attempted the following code:

     

        upl_AjaxUploader.TempDirectory = "~/uploads"   'upl_AjaxUploader.InsertText = "Upload File (Max 10M)"
       upl_AjaxUploader.InsertText = "Test1"
       upl_AjaxUploader.ValidateOption.AllowedFileExtensions = "*.mp4,*.jpg,*.gif,*.png,*.bmp,*.zip,*.rar"
       upl_AjaxUploader.ValidateOption.MaxSizeKB = 5000
       upl_AjaxUploader.FileTypeNotSupportMsg = "bad file type"
       upl_AjaxUploader.FileTooLargeMsg = "file too large"
       upl_AjaxUploader.ShowProgressBar = True
       upl_AjaxUploader.ShowProgressInfo = True
       upl_AjaxUploader.InsertButtonID = "btn_Upload"
       tcell_Image1.Controls.Add(upl_AjaxUploader)
       
       Dim btn_Upload As New Button
       'btn_Upload.Enabled = False
       btn_Upload.ID = "btn_Upload"
       btn_Upload.Text = "Test2"
       btn_Upload.Width = 500
       tcell_Image1.Controls.Add(btn_Upload)

     

    However, the result is strange - I see what looks like a default button with the word "Upload" on it, and neither of the buttons mentioned in the code should say only "Upload".  Also, the width is uncontrollable even though it's specified in the custom button.  What am I missing here?

     

    2) The progress panel looks and works great.  But, for small files, it goes away too quickly, such that it can't be read.  Is there a way to get the progress panel to stay visible a longer amount of time?

View Complete Thread