protected void AgregarRegistro(object sender, EventArgs e)
        {
            string ubicacio = txtUbicacion.Text.Trim();

            if (ubicacio != "")
            {
                oUbicacionesDAL = new ubicacionesDAL();
                oUbicacionesDAL.Agregar(datosUbicacion());
                ListarUbicaciones();

                var ubicacion = db.ubicaciones.Where(x => x.ubicaciones1 == ubicacio).FirstOrDefault();

                if (ubicacion != null)
                {
                    //oUbicacionesDAL = new ubicacionesDAL();
                    //oUbicacionesDAL.Agregar(datosUbicacion());
                    //ListarUbicaciones();
                }
                else
                {
                    //ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "alertaPassFail", "window.onload = function(){alert('contraseña es incorrecta1');};", true);
                }
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "alertaPassFail", "window.onload = function(){alert('Debe ingresar una ubicacion.');};", true);
            }
        }