C# Modifiers

Document Upload

Protected WithEvents doc_uploader As System.Web.UI.htmlcontrols.HtmlInputFile

            Dim loFilename As String
            Dim loErrors As String

            If (doc_uploader.PostedFile.ContentLength = 0) Then
                Return
            End If
           
            loFilename = Me.Path + System.IO.Path.GetFileName(doc_uploader.PostedFile.FileName)
            doc_uploader.PostedFile.SaveAs(loFilename)

Comments