private void UniqueSearch(string id, string email) { try { HideMessage(); //Search by MemberID should route to Detail page, if found if (!String.IsNullOrEmpty(id)) { selectedMemberID = Members.GetMember(Int32.Parse(id)).MemberID.ToString(); RedirectToDetails(selectedMemberID, email, GlobalMessages.sMSG_NORECORDFOUND_MEMBERID); } //Search by Email Address should route to Detail page, if found if (!String.IsNullOrEmpty(email)) { GlobalLists.SaltMemberModel = Members.GetMember(email); if (GlobalLists.SaltMemberModel != null) { selectedMemberID = GlobalLists.SaltMemberModel.MemberID.ToString(); selectedUserName = GlobalLists.SaltMemberModel.EmailAddress; RedirectToDetails(selectedMemberID, selectedUserName, GlobalMessages.sMSG_NORECORDFOUND_USERNAME); } else { this.SearchPartialEmailAndRenderGridView(email); } } } catch (FormatException) { ShowMessage(GlobalMessages.sMSG_INVALITD_MEMBERID); } catch (OverflowException) { ShowMessage(GlobalMessages.sMSG_MEMBERID_TOO_MANY_DIGITS); } catch (Exception ex) { ShowMessage(ex.Message); } }