protected void btnAtualizar_Click(object sender, EventArgs e)
        {
            SqlManag cmd = new SqlManag(StrCon);

            cmd.InsertComand("INSERT INTO dbo.TbAtualizarPromocao VALUES('" + txtNomeMax.Text + "'," + float.Parse(txtValorMax.Text) + ",'" + txtNomeMed.Text + "'," + float.Parse(txtValorMed.Text) + ",'" + txtNomeMin.Text + "'," + float.Parse(txtValorMin.Text) + ");");
            Response.Redirect("~/Promocoes");
        }
Exemple #2
0
        protected void btnSalvar_Click(object sender, EventArgs e)
        {
            SqlManag cmd = new SqlManag(StrCon);

            cmd.InsertComand("insert into TbUser Values('" + txtEmail.Text + "','" + txtSenha.Text + "','" + txtNome.Text + "'," + txtIdade.Text + ",'" + txtCpf.Text + "','" + txtRg.Text + "','19/05/1992','19/05/1992');");
        }