Imports CAMS_ADMIN
Imports System
Imports System.Configuration

Public Class frmHeader
    Inherits CAMSBasePage

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents imgLogo As System.Web.UI.WebControls.Image
    Protected WithEvents lblUserName As System.Web.UI.WebControls.Label
    Protected WithEvents lblPath As System.Web.UI.WebControls.Label
    Protected WithEvents imgHome As System.Web.UI.WebControls.Image

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        imgLogo.ImageUrl = ConfigurationSettings.AppSettings("LogoPath")
        Dim oEC_User As EC_User = Me.GetUserFromSession
        Me.lblUserName.Text = oEC_User.Name & " " & oEC_User.Surname & Space(3)

        imgHome.ImageUrl = "./images/icono_home.gif"
    End Sub

End Class
