Exemple #1
0
    protected void btn_submit_Click(object sender, EventArgs e)
    {
        try
        {
            string CarModel  = Txt_Model.Text;
            string CarMake   = Txt_Make.Text;
            string Engine    = Txt_Engine.Text;
            string Condition = Txt_Condition.Text;
            string Milage    = Txt_Milage.Text;

            Carinfo infoBin = new Carinfo(CarModel, CarMake, Milage, Engine, Condition);
            ConnectionClass.AddCarInfo(infoBin);
            lbl_Confirm.Text = "Entry Success";
        }
        catch (Exception EX)
        {
            lbl_Confirm.Text = "Entry Failed" + EX.Message;
        }
    }