Ejemplo n.º 1
0
 protected void ButtonAceptar_Click(object sender, EventArgs e)
 {
     if (ValidarHotel())
     {
         LabelMensajesHot.Text = BD.AltaHotel(int.Parse(DropDownListCiudades.SelectedValue),
                                              TextBoxNombre.Text, DropDownListCadenas.SelectedValue,
                                              int.Parse(TextBoxCategoria.Text), TextBoxDireccion.Text,
                                              int.Parse(TextBoxTelefono.Text), DropDownListTipo.SelectedValue.ToUpper());
         if (LabelMensajesHot.Text == "")
         {
             VerGrid();
         }
     }
 }