Re: Maximum file size

  •  09-21-2010, 10:22 AM

    Re: Maximum file size

    Dear Bart,
     
    Please refer to the following code:
    1. AjaxUploaderCodeBehindTest.aspx
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="AjaxUploaderCodeBehindTest.aspx.vb" Inherits="AjaxUploaderCodeBehindTest" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>   
            <CuteWebUI:UploadAttachments ID="UploadAttachments1" runat="server" >
            </CuteWebUI:UploadAttachments>
        </div>
        </form>
    </body>
    </html>
    2.AjaxUploaderCodeBehindTest.aspx.vb

    Partial Class AjaxUploaderCodeBehindTest
        Inherits System.Web.UI.Page

        Protected Sub UploadAttachments1_FileUploaded(ByVal sender As Object, ByVal args As CuteWebUI.UploaderEventArgs) Handles UploadAttachments1.FileUploaded
            args.CopyTo("e:\\temp\\" & args.FileName)
        End Sub

        Protected Sub AttachmentRemoveClicked(ByVal sender As Object, ByVal args As CuteWebUI.AttachmentItemEventArgs) Handles UploadAttachments1.AttachmentRemoveClicked
            Dim hoi As String = "hoi"
        End Sub
    End Class
     
    Thank you for asking
    Eric@cutesoft.net
View Complete Thread