private void BindUsersOnline()
        {
            UsersOnline uo          = new UsersOnline();
            string      sOnlineList = uo.GetUsersOnline(PortalId, ModuleId, ForumUser);
            IDataReader dr          = DataProvider.Instance().Profiles_GetStats(PortalId, -1, 2);
            int         anonCount   = 0;
            int         memCount    = 0;
            int         memTotal    = 0;

            while (dr.Read())
            {
                anonCount = Convert.ToInt32(dr["Guests"]);
                memCount  = Convert.ToInt32(dr["Members"]);
                memTotal  = Convert.ToInt32(dr["MembersTotal"]);
            }
            dr.Close();
            string sGuestsOnline = null;
            string sUsersOnline  = null;

            sGuestsOnline        = Utilities.GetSharedResource("[RESX:GuestsOnline]");
            sUsersOnline         = Utilities.GetSharedResource("[RESX:UsersOnline]");
            litGuestsOnline.Text = sGuestsOnline.Replace("[GUESTCOUNT]", anonCount.ToString());
            sUsersOnline         = sUsersOnline.Replace("[USERCOUNT]", memCount.ToString());
            sUsersOnline         = sUsersOnline.Replace("[TOTALMEMBERCOUNT]", memTotal.ToString());
            litUsersOnline.Text  = sUsersOnline + " " + sOnlineList;
        }
 private void BindUsersOnline()
 {
     UsersOnline uo = new UsersOnline();
     string sOnlineList = uo.GetUsersOnline(PortalId, ModuleId, ForumUser);
     IDataReader dr = DataProvider.Instance().Profiles_GetStats(PortalId, -1, 2);
     int anonCount = 0;
     int memCount = 0;
     int memTotal = 0;
     while (dr.Read())
     {
         anonCount = Convert.ToInt32(dr["Guests"]);
         memCount = Convert.ToInt32(dr["Members"]);
         memTotal = Convert.ToInt32(dr["MembersTotal"]);
     }
     dr.Close();
     string sGuestsOnline = null;
     string sUsersOnline = null;
     sGuestsOnline = Utilities.GetSharedResource("[RESX:GuestsOnline]");
     sUsersOnline = Utilities.GetSharedResource("[RESX:UsersOnline]");
     litGuestsOnline.Text = sGuestsOnline.Replace("[GUESTCOUNT]", anonCount.ToString());
     sUsersOnline = sUsersOnline.Replace("[USERCOUNT]", memCount.ToString());
     sUsersOnline = sUsersOnline.Replace("[TOTALMEMBERCOUNT]", memTotal.ToString());
     litUsersOnline.Text = sUsersOnline + " " + sOnlineList;
 }