protected void GetContactDetailByContactID() { CustomProfile profile = CustomProfile.GetProfile(); iUCCommonFilterClient UCCommonFilter = new iUCCommonFilterClient(); try { tContactPersonDetail conper = new tContactPersonDetail(); conper = UCCommonFilter.GetContactPersonDetailsByID(long.Parse(hdnConID.Value), profile.DBConnection._constr); if (conper.Name != null) { txtName.Text = conper.Name.ToString(); } if (conper.EmailID != null) { txtEmail.Text = conper.EmailID.ToString(); } if (conper.MobileNo != null) { txtMobileNo.Text = conper.MobileNo.ToString(); } } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "AddEditSearchContact", "GetContactDetailByContactID"); } finally { UCCommonFilter.Close(); } }