private void BindPerson() { int personId = Request.QueryString["PersonId"].ToInt(); if (personId > 0) { Person personLookup = PersonDAL.GetItem(personId); if (personLookup != null) { lblPersonId.Text = personLookup.PersonId.ToString(); lblFirstName.Text = personLookup.FirstName; lblLastName.Text = personLookup.LastName; lblDisplayFirstName.Text = personLookup.DisplayFirstName; lblGender.Text = personLookup.Gender; } else { lblMessage.Text = "Person could not be found."; } } else { lblMessage.Text = "Invalid ID. Person record could not be found."; } }