protected void selectTextChat()
        {
            //2:Text Chat


            string agentName      = "";
            string conferenceName = "";

            IncidentDS.IncidentDSDataTable dt = BllProxyIncident.SelectIncident(profileId);
            if (dt.Rows.Count != 0)
            {
                conferenceName = dt[0].incident_guid.ToString();
                agentName      = dt[0].agent_full_name;
            }


            if (this.UcPage.UserRoleId != 2)   // Agent
            {
                UserDS.UserDSDataTable dtU = BllProxyUser.SelectUser(this.UcPage.UserId);
                if (dtU.Rows.Count != 0)
                {
                    string userRoleTitle = "";


                    switch (this.UcPage.UserRoleId)
                    {
                    case 1:     // Administrator
                        userRoleTitle = "ADMN";
                        break;

                    case 2:     // Agent
                        userRoleTitle = "AGNT";
                        break;

                    case 3:     // Manager
                        userRoleTitle = "MNGR";
                        break;

                    case 4:     // User
                        userRoleTitle = "USER";
                        break;

                    case 5:     // Supervisor
                        userRoleTitle = "SPVR";
                        break;
                    }


                    agentName = dtU[0].full_name + " [" + userRoleTitle + "]";
                }
            }


            TextChatControl.ConfSessionId   = conferenceName;
            TextChatControl.ConfSessionUser = agentName;


            IncidentHelper.SetIncidentStateTextChat(profileId);
        }