protected void updateVehicle_button_Click(object sender, EventArgs e)
 {
     //get input
     //do update stored procedure
     SqlDataSource6.Update();
     MultiView1.ActiveViewIndex = 0;
     error_label.Text           = "Update Successful";
 }
Esempio n. 2
0
        protected void btnCadastrar_Click(object sender, EventArgs e)
        {
            Usuarios User = new Usuarios();

            User = (Usuarios)Session["usuario"];

            SqlDataSource1.SelectParameters["IDCond"].DefaultValue = Convert.ToString(User.Cond);

            SqlDataSource4.UpdateParameters["Nome"].DefaultValue  = ddlNome.SelectedItem.Value;
            SqlDataSource4.UpdateParameters["Bloco"].DefaultValue = ddlBloco.SelectedItem.Value;
            SqlDataSource4.UpdateParameters["Apart"].DefaultValue = ddlApartamento.SelectedItem.Value;

            SqlDataSource5.UpdateParameters["Nome"].DefaultValue  = ddlNome0.SelectedItem.Value;
            SqlDataSource5.UpdateParameters["Bloco"].DefaultValue = ddlBloco0.SelectedItem.Value;
            SqlDataSource5.UpdateParameters["Apart"].DefaultValue = ddlApartamento0.SelectedItem.Value;

            SqlDataSource4.Update();
            SqlDataSource5.Update();
            SqlDataSource6.Update();
        }