Ejemplo n.º 1
0
        protected void btnGuardar_Click(object sender, EventArgs e)
        {
            //lat DECIMAL(10, 8) NOT NULL, lng DECIMAL(11, 8) NOT NULL
            Decimal lat = Decimal.Parse(txtLatitud.Text, CultureInfo.InvariantCulture);
            Decimal lon = Decimal.Parse(txtLongitud.Text, CultureInfo.InvariantCulture);

            string[] direccion = txtPlaces.Text.Split(',');

            ControladorGeneral.InsertarActualizarComplejo(Convert.ToInt32(Session["codigoComplejo"].ToString()), txtNombreComplejo.Text, direccion[0],
                                                          Convert.ToInt32(ddlHoraApertura.SelectedValue), Convert.ToInt32(ddlHoraCierre.SelectedValue), txtMailComplejo.Text, txtTelefono.Text, (double)lat, (double)lon);

            Response.Redirect("complejo.aspx");
        }