title: agsXMPP OnLogin event not firing Asp.Net
body: <p>I am trying to make an agsXMPP GTalk chat client in Asp.Net but the OnLogin event is just not doing anything at all, I have tried so, so many things...</p>
  
  <p>Can anyone please help me?</p>
  
  <p>Here is the code for the aspx.cs file:</p>
  
  <pre><code>using System;
  ...
  
  using agsXMPP;
  using agsXMPP.protocol.client;
  using agsXMPP.Collections;
  using agsXMPP.protocol.iq.roster;
  using System.Threading;
  
  using Microsoft.Win32;
  
  public partial class ChatClient : System.Web.UI.Page
  {
      private agsXMPP.XmppClientConnection xmppCC = new XmppClientConnection();
  
      protected void Page_Load(object sender, EventArgs e)
      {
      }
  
      void xmpp_OnLogin(object sender)
      {
          lblMsg.Text = "Succes!" + xmppCC.Authenticated.ToString();
          xmppCC.SendMyPresence();
      }
  
      string emailAdres; string password;
      protected void cmdLogin_Click(object sender, EventArgs e)
      {
          emailAdres = textEmail.Text; password= textPassw.Text;
  
          xmppCC = (XmppClientConnection)Application["xmpp"];
          if (xmppCC == null)
          {
              xmppCC = new XmppClientConnection();
              Application["xmpp"] = xmppCC;
          }
  
          Jid jidSender = new Jid(emailAdres);
  
          xmppCC.Username = jidSender.User;
          xmppCC.Server = jidSender.Server;
          xmppCC.Password = password;
          xmppCC.AutoResolveConnectServer = true;
  
          try
          {
              xmppCC.OnLogin += xmpp_OnLogin;
              lblMsg.Text = "";
              xmppCC.Open();
          }
          catch (Exception ex)
          {
              lblMsg.Text = ex.Message;
          }
      }
  }
  </code></pre>
  
  <p>Thanks in advance</p>