public void BindExistingContacts() { try { int _UserID = Convert.ToInt32(HttpContext.Current.User.Identity.Name); UserEmailContacts[] _AllContacts = new UserEmailContacts().GetUserEmailContacts(_UserID); if (_AllContacts.Count() > 0) { divExistingContacts.Visible = true; rptContacts.ItemDataBound += rptContacts_ItemDataBound; rptContacts.DataSource = _AllContacts; rptContacts.DataBind(); } } catch (Exception) { } }