Exemplo n.º 1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            Customer ad1   = new Customer();
            int      Cid   = Convert.ToInt32(TextBox1.Text);
            string   Cname = TextBox2.Text;
            string   Pname = TextBox3.Text;
            int      Price = Convert.ToInt32(TextBox4.Text);
            var      c     = ad1.Insertrow(Cid, Cname, Pname, Price);

            Button2. = c;
            Button2.DataBind();
        }