Error: 'CuteWebUI.UploaderBase.Protected Overridable Sub OnFileUploaded(args As CuteWebUI.UploaderEventArgs)' is not accessible in this context because it is 'Protected'.

  •  11-15-2009, 9:16 PM

    Error: 'CuteWebUI.UploaderBase.Protected Overridable Sub OnFileUploaded(args As CuteWebUI.UploaderEventArgs)' is not accessible in this context because it is 'Protected'.

    I keep getting error:
     
    'CuteWebUI.UploaderBase.Protected Overridable Sub OnFileUploaded(args As CuteWebUI.UploaderEventArgs)' is not accessible in this context because it is 'Protected'.
    Any ideas?
     
    Here's my code:
     
    Public u As New CuteWebUI.Uploader

    Protected Overrides Sub OnInit(e As EventArgs)
     MyBase.OnInit(e)
     u.onFileUploaded += new UploaderEventHandler(Uploader_FileUploaded)  - ERROR
    End Sub

    Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
     u.onuploadcompleted = "Uploader_FileUploaded"
     MainFormPlaceHolder.Controls.Add(u)
    End Sub

View Complete Thread