Ejemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            DataClasses1DataContext db = new DataClasses1DataContext();

            bju_items table = new bju_items();

            var name = TextBox1.Text;
            var b    = decimal.Parse(TextBox2.Text);
            var j    = decimal.Parse(TextBox3.Text);
            var u    = decimal.Parse(TextBox4.Text);
            var kal  = int.Parse(TextBox5.Text);

            string command = String.Format("INSERT INTO bju VALUES({0},{1},{2},{3},{4})", name, b, j, u, kal);

            db.ExecuteCommand(command);

            Response.Redirect("/BJU_products.aspx");
        }
 partial void Deletebju_items(bju_items instance);
 partial void Updatebju_items(bju_items instance);
 partial void Insertbju_items(bju_items instance);