Re: Maximum file size

  •  09-21-2010, 8:26 AM

    Re: Maximum file size

    I created a small test to check it out
    1. Public Class _Default  
    2.     Inherits System.Web.UI.Page  
    3.   
    4.     Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
    5.   
    6.         Dim fileUploader As New CuteWebUI.UploadAttachments  
    7.         fileUploader.ID = "fileUploader"  
    8.         fileUploader.ManualStartUpload = "true"  
    9.   
    10.         AddHandler fileUploader.AttachmentRemoveClicked, AddressOf fileUploader_AttachmentRemoveClicked  
    11.         Dim btnAddFiles As New Button  
    12.         btnAddFiles.ID = " btnAddFiles"  
    13.         btnAddFiles.CssClass = "Inputbutton"  
    14.         btnAddFiles.Text = "Toevoegen"  
    15.         btnAddFiles.Attributes.Add("OnClick""document.getElementById('" & form1.ClientID & "_fileUploader').startupload();return false;")  
    16.         Dim hfTotalSize As New HiddenField  
    17.         hfTotalSize.ID = "hfTotalSize"  
    18.         hfTotalSize.Value = "0"  
    19.         form1.Controls.Add(fileUploader)  
    20.         form1.Controls.Add(New LiteralControl("<br />"))  
    21.         form1.Controls.Add(btnAddFiles)  
    22.         form1.Controls.Add(hfTotalSize)  
    23.   
    24.     End Sub  
    25.     Sub fileUploader_AttachmentRemoveClicked(ByVal sender As Object, ByVal args As CuteWebUI.AttachmentItemEventArgs)  
    26.         Dim hoi As String = "hoi"  
    27.     End Sub  
    28.   
    29. End Class 
     but if I set a debugpoint at row26 nothing happens while clicking the red cross
    So somewhere the  AttachmentRevomodeClicked isn't triggert correctly,
    Downloaded the new version of the uploadcontrol today.
     
    Regs Bart
View Complete Thread