void RefreshUserStatus() { if (ApplicationName == String.Empty) { m_UsersOnline.Text = "-"; m_OnlineTimeWindow.Text = "-"; return; } IMembershipManager membershipManager = UserManagerProviderFactory.CreateMembershipManager(); // new AspNetSqlProviderService(ServiceAddress); m_UsersOnline.Text = membershipManager.GetNumberOfUsersOnline(ApplicationName).ToString(); m_OnlineTimeWindow.Text = membershipManager.UserIsOnlineTimeWindow(ApplicationName).ToString(); }