protected void btnClick_btnAddJobCard(object sender, EventArgs e) { if (Page.IsValid) { transportdata = new TransportData(); transport = new Transports(); transport.ID = 0; transport.VOp = Convert.ToInt32(txtVOpId.Text); transport.Brake = txtBrake.Text; transport.Light = txtLight.Text; transport.TyreCon = txtTyreCondition.Text; transport.damage = txtDamages.Text; transport.other = txtOthers.Text; transport.oillevel = txtOilLevel.Text; transport.battery = txtBattery.Text; transport.crownjointsound = txtCrownnandJointSound.Text; transport.clutchcon = txtClutchCondition.Text; transport.stearingvobling = txtStearingVobling.Text; transport.suspension = txtSuspension.Text; transport.gearbox = txtGearBox.Text; transport.CreatedBy = GlobalInfo.Userid; transport.Createddate = DateTime.Now.ToString("dd-MM-yyyy"); transport.flag = "Insert"; int Result = 0; Result = transportdata.AddVehicleJOBCardInfo(transport); if (Result > 0) { divDanger.Visible = false; divwarning.Visible = false; divSusccess.Visible = true; lblSuccess.Text = "Vehicle Operation Added Successfully"; ClearTextBox(); BindVehicleOperationInfo(); pnlError.Update(); upMain.Update(); uprouteList.Update(); } else { divDanger.Visible = false; divwarning.Visible = true; divSusccess.Visible = false; lblwarning.Text = "Please Contact to Site Admin"; pnlError.Update(); } } }