Exemple #1
0
 private void MypickerColonia_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (DireccionesListaColonia.Count > 0)
     {
         VMDireccion Colonia     = DireccionesListaColonia.Find(t => t.COLONIA == MypickerColonia.SelectedItem.ToString());
         VMDireccion MVDireccion = new VMDireccion();
         txtCodigoPostal.Text = MVDireccion.ObtenerCodigoPostal(Colonia.ID);
     }
 }
Exemple #2
0
        protected void ObtenerCP(object sender, EventArgs e)
        {
            Guid Colonia = new Guid(DDLDColonia.SelectedItem.Value.ToString());

            txtDCodigoPostal.Text = MVDireccion.ObtenerCodigoPostal(Colonia);
        }