Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            updateEntity = new Person();
            updateUser   = new UserAccount();
            proxyAuth    = new AuthenticationServiceClient("WSHttpBinding_IAuthenticationService");
            proxyPolicy  = new PolicyPasswordAdminServiceClient("WSHttpBinding_IPolicyPasswordAdminService");

            string cuenta = Request.Params["Account"].ToString();
            string pass   = Request.Params["Password"].ToString();

            long userID = proxyAuth.GetID(cuenta, pass);

            updateEntity = GetPerson(userID);
            updateUser   = GetUser(userID);

            if (!IsPostBack)
            {
                txt_Nombre.Text    = updateEntity.Name;
                txt_APaterno.Text  = updateEntity.FirstName;
                txt_AMaterno.Text  = updateEntity.LastName;
                txt_CI.Text        = updateEntity.IdentityCard.ToString();
                txt_Profesion.Text = updateEntity.Profession;
                txt_Email.Text     = updateEntity.Email;
                txt_Celular.Text   = updateEntity.MobilePhone.ToString();
                txt_Fono.Text      = updateEntity.HomePhone.ToString();
                txt_Domicilio.Text = updateEntity.HomeAddress;
                txt_CPostal.Text   = updateEntity.PostalCode.ToString();
                txt_Pass.Text      = updateUser.Password;
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     proxyPolicy = new PolicyPasswordAdminServiceClient("WSHttpBinding_IPolicyPasswordAdminService");
 }