public void CreateCar()
        {
            Assert.AreEqual("Benzin", car.Select("carType"));

            car.Delete();
            user.Delete();
        }
Beispiel #2
0
        public void DeleteItem(object sender, System.EventArgs e)
        {
            String CarID = ((HtmlAnchor)sender).HRef.ToString();
            int    i     = CarClass.Delete(CarID, Convert.ToInt32(lblPersonID.Text));

            if (i == 0)
            {
                ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('خطا در حذف');", true);
            }
            else
            {
                BindGrid();
            }
            LightBox.Value = "0";
        }