Exemplo n.º 1
0
    protected void btn_ok_Click(object sender, EventArgs e)
    {
        Delivery Adddeli  = new Delivery();
        int      deliId   = int.Parse(txt_del_id.Text);
        string   date     = txt_date.Text;
        string   time     = txt_time.Text;
        string   location = txt_location.Text;
        int      salesId  = int.Parse(txt_sales_id.Text);
        int      branchId = int.Parse(txt_br_id.Text);
        int      driverId = int.Parse(txt_dr_id.Text);

        Adddeli.AddDelivery(deliId, date, time, location, salesId, branchId, driverId);
        Response.Write("<script>alert('Success ');</script>");
    }