not able get message in chat application when successfully logs in
<p>I want to make a simple chat application.. I have used the below link
<a href="http://www.codeproject.com/Articles/17617/Create-a-Chat-System-using-Ajax-and-ASP-NET" rel="nofollow">http://www.codeproject.com/Articles/17617/Create-a-Chat-System-using-Ajax-and-ASP-NET</a></p>

<p>After writing below code  able to redirect to chat.aspx page</p>

<pre><code>       protected void btnJoin_Click(object sender, EventArgs e)
        {
            if (getUser(txtUserName.Text, txtPassword.Text))
            {
                if(c.CheckUser(txtUserName.Text))
                {
                   // lblError.Text = "You are in the chat room already!";
 Session["UserName"] = txtUserName.Text;
                    Response.Write("&lt;script language=\"javascript\"&gt;" + "\n");
                    Response.Write("window.open(\"Chat.aspx\",\"chat\",\"width=800\",\"height=600\",\"toolbar=no\",\"menubar=no\")" + "\n&lt;/script&gt;");
                }
                else
                {
                    c.AddCustomer(txtUserName.Text);
                    cc.joinRoom(txtUserName.Text);
                    Session["UserName"] = txtUserName.Text;
                    Response.Write("&lt;script language=\"javascript\"&gt;" + "\n");
                    Response.Write("window.open(\"Chat.aspx\",\"chat\",\"width=800\",\"height=600\",\"toolbar=no\",\"menubar=no\")" + "\n&lt;/script&gt;");
                    //Response.Redirect("Chat.aspx");
                }
            }
            else
            {
                lblError.Text = "Login Failed";
            }
        }
</code></pre>

<p>But i can see the name of user repeatedly in a right panel...I f two user are online the only the name of two user should display but i can see the name of same user more than once</p>
