Imports System.Data.SqlClient

Public Class ShowUserInfo
        Inherits System.Web.UI.Page
        Protected WithEvents lblFirstName As System.Web.UI.WebControls.Label
        Protected WithEvents lblLastName As System.Web.UI.WebControls.Label
        Protected WithEvents lblUserID As System.Web.UI.WebControls.Label
        Protected WithEvents lblScreenName As System.Web.UI.WebControls.Label
        Dim objChatBLL As New Chat_BLL()

#Region " Web Form Designer Generated Code "

        'This call is required by the Web Form Designer.
        <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

        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
                'Put user code to initialize the page here
                doPageLoad()
        End Sub

        Private Sub doPageLoad()


                Dim strUserID As String = Request.QueryString("UserID")


                '                strUserID = "1"
                Dim rdr As SqlDataReader = objChatBLL.get_UserInfo(strUserID)
                If rdr.Read Then
                        lblFirstName.Text = rdr("FirstName")
                        lblLastName.Text = rdr("Lastname")
                        'lblScreenName.Text = rdr("ScreenName")
                End If


        End Sub


End Class
