Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var users = AppClients.GetUsers();

            dgUsers.DataSource = users;
            dgUsers.DataBind();
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            sInn = Request.QueryString["sInn"];
            AppGetUsers.AppUser usr = AppClients.GetUsers().FirstOrDefault(f => f.Inn == sInn);
            if (usr != null)
            {
                lblInn.Text          = usr.Inn;
                lblSurname.Text      = usr.Surname;
                lblFirstname.Text    = usr.Firstname;
                lblPatronymic.Text   = usr.Patronymic;
                lblPassport_ser.Text = usr.Passport_ser;
                lblPassport_num.Text = usr.Passport_num;
                lblAddress.Text      = usr.Address;

                if (usr.Birthdate.HasValue)
                {
                    lblBirthdate.Text = usr.Birthdate.Value.ToString("dd.MM.yyyy");
                }
            }
        }