Beispiel #1
0
        private void InitTextBoxes(int id)
        {
            Contact contact = SQLUtils.GetContactByID(id);

            TxtBoxFirstName.Text = contact.FirstName;
            TxtBoxLastName.Text  = contact.LastName;
            TxtBoxSSN.Text       = contact.SSN;
        }
        private Contact GetContact()
        {
            string s = ClientQueryString.Split('=').Last();

            int id = Convert.ToInt32(s);

            Contact c = SQLUtils.GetContactByID(id);

            return(c);
        }