protected void BtnAdd_Click(object sender, EventArgs e) { i = obj.AddVehicle(ddnvehicletype.SelectedItem.Text, txtvehicleno.Text, txtdriver.Text, txtconductor.Text, txtaadhar.Text, txtaadhar1.Text, txtdesc.Text, "Admin", 1, DateTime.Now.ToString()); if (i > 0) { lblmsg.Text = "Data Has Been Added"; BindData(); ClearFields(); Response.Redirect("VehicleMaster.aspx"); } }