Click here to Skip to main content
15,885,216 members
Articles / Web Development / ASP.NET

Simple but robust web based file management system including user authentication

Rate me:
Please Sign up or sign in to vote.
3.17/5 (5 votes)
13 Jun 2006Public Domain1 min read 46.5K   1.2K   41  
This article will present a fully functional ASP.NET web application file management system written in pure VB. It allows for user authentication (Forms authentication), and based off that authenticate to allow/disallow functions within the site.
Public Class WebDriveUserInfo
#Region " Private Members "
    Private _Roles() As String
    Private _UserName As String
    Private _Password As String
    Private _MaxFileSize As Integer
    Private _UserID As Integer
#End Region
#Region " Properties "
    Public ReadOnly Property Roles() As String()
        Get
            Return _Roles
        End Get
    End Property
    Public ReadOnly Property UserName() As String
        Get
            Return _UserName
        End Get
    End Property
    Public Property UserID() As Integer
        Get
            Return _UserID
        End Get
        Set(ByVal Value As Integer)
            _UserID = Value
        End Set
    End Property
    Public ReadOnly Property Password() As String
        Get
            Return _Password
        End Get
    End Property
    Public ReadOnly Property MaxFileSize() As Integer
        Get
            Return _MaxFileSize
        End Get
    End Property
#End Region
#Region " Constructors "
    Private Sub New()
        'Hide
    End Sub
    Public Sub New(ByVal userName As String, ByVal userID As Integer, ByVal maxFileSize As Integer, ByVal roles() As String, Optional ByVal Password As String = "")
        _UserName = UserName.ToUpper
        _UserID = UserID
        _Password = Password
        _Roles = Roles
        _MaxFileSize = MaxFileSize
    End Sub
#End Region
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions