protected void Page_Load(object sender, EventArgs e)
        {
            EnvolveAPIEncoder encoder = new EnvolveAPIEncoder(this.myAPIKey);

            this.Literal1.Text = "envoSn=" + encoder.SiteID + ";\n" +
                "env_commandString=\"" + (this.fName == null ? encoder.getLogoutCommand() :
                encoder.getLoginCommand(this.fName, this.lName, this.pic, this.isAdmin)) + "\";\n";
        }
        // We use Page_PreRender to set the contents of embeddedJavascript to ensure Page_Load for all
        // EnvolveEmbeddedChatControls has completed.
        protected void Page_PreRender(object sender, EventArgs e)
        {
            EnvolveAPIEncoder encoder = new EnvolveAPIEncoder(this.APIKey);

            this.embeddedJavascript.Text = "envoSn=" + encoder.SiteID + ";\n" +
                                           "env_commandString=\"" + (this.FirstName == null ? encoder.GetLogoutCommand() :
                                                                     encoder.GetLoginCommand(this.FirstName, this.LastName, this.ProfilePicture, this.ProfileHoverHTML, this.AdminMode)) + "\";\n" +
                                           "envoOptions=" + encoder.GetOptions(chats) + ";\n";
        }
        // We use Page_PreRender to set the contents of embeddedJavascript to ensure Page_Load for all
        // EnvolveEmbeddedChatControls has completed.
        protected void Page_PreRender(object sender, EventArgs e)
        {
            EnvolveAPIEncoder encoder = new EnvolveAPIEncoder(this.APIKey);

            this.embeddedJavascript.Text = "envoSn=" + encoder.SiteID + ";\n" +
                "env_commandString=\"" + (this.FirstName == null ? encoder.GetLogoutCommand() :
                encoder.GetLoginCommand(this.FirstName, this.LastName, this.ProfilePicture, this.ProfileHoverHTML, this.AdminMode)) + "\";\n" +
                "envoOptions=" + encoder.GetOptions(chats) + ";\n";
        }