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

Display/Store and Retrieve Image Data from Database to Gridview, and also on Mouse Over

Rate me:
Please Sign up or sign in to vote.
4.44/5 (21 votes)
15 Oct 2011CPOL4 min read 128.1K   9.9K   50  
How to Display/Store and Retrieve Image Data from Database to Gridview, and also on mouse over
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Web;
using System.Drawing;

/// <summary>
/// Summary description for User
/// Created by Algem 
/// 9-15-2011
/// </summary>
/// 
[Serializable]
public class User
{
    private int _userID;
    private string _username;
    private string _password;
    private string _lastName;
    private string _firstName;
    private string _middleName;
    private string _worksiteCode;
    private int _accessLevel;
    private string _active;
    private DateTime _dateCreated;
    private DateTime _dateUpdated;
    private string _worksitedesc;
    private object _picture;
    private object _imageFull;


    public int UserID { get { return _userID; } set { _userID = value; } }
    public string Username { get { return _username; } set { _username = value; } }
    public string Password { get { return _password; } set { _password = value; } }
    public string LastName { get { return _lastName; } set { _lastName = value; } }
    public string FirstName { get { return _firstName; } set { _firstName = value; } }
    public string MiddleName { get { return _middleName; } set { _middleName = value; } }
    public string WorksiteCode { get { return _worksiteCode; } set { _worksiteCode = value; } }
    public int AccessLevel { get { return _accessLevel; } set { _accessLevel = value; } }
    public string Active { get { return _active; } set { _active = value; } }
    public DateTime DateCreated { get { return _dateCreated; } set { _dateCreated = value; } }
    public DateTime DateUpdated { get { return _dateUpdated; } set { _dateUpdated = value; } }
    public string Worksitedesc { get { return _worksitedesc; } set { _worksitedesc = value; } }
    public object Picture { get { return _picture; } set { _picture = value; } }
    public object ImageFull
    {
        get { return _imageFull; }
        set { _imageFull = value; }
    }

    public User()
    { }

    public User(
    int userID,
    string username,
    string password,
    string lastName,
    string firstName,
    string middleName,
    string worksiteCode,
    int accessLevel,
    string active,
    DateTime dateCreated,
    DateTime dateUpdated,
    string worksitedesc,
    object picture,
    object imageFull)
    {
        _userID = userID;
        _username = username;
        _password = password;
        _lastName = lastName;
        _firstName = firstName;
        _middleName = middleName;
        _worksiteCode = worksiteCode;
        _accessLevel = accessLevel;
        _active = active;
        _dateCreated = dateCreated;
        _dateUpdated = dateUpdated;
        _worksitedesc = worksitedesc;
        _picture = picture;
        _imageFull = imageFull;
    }

    public User(
    int userID,
    string username,
    string password,
    string lastName,
    string firstName,
    string middleName,
    string worksiteCode,
    int accessLevel,
    string active,
    DateTime dateCreated,
    DateTime dateUpdated,
    string worksitedesc)
    {
        _userID = userID;
        _username = username;
        _password = password;
        _lastName = lastName;
        _firstName = firstName;
        _middleName = middleName;
        _worksiteCode = worksiteCode;
        _accessLevel = accessLevel;
        _active = active;
        _dateCreated = dateCreated;
        _dateUpdated = dateUpdated;
        _worksitedesc = worksitedesc;
    }



}

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 The Code Project Open License (CPOL)


Written By
Software Developer (Senior) ***
Philippines Philippines
MCTS - Microsoft Certified Technology Specialist.
An Accountant.
Had been developed Payroll Accounting System Application
Live in: Quezon City, Metro Manila Philippines
Could reached at email address: ag_mojedo@live.com

Comments and Discussions