Exemplo n.º 1
0
        public void DeleteItem(object sender, EventArgs e)
        {
            HtmlAnchor temp = (HtmlAnchor)sender;
            int        id   = Int32.Parse(temp.Attributes["GridID"].ToString());

            CuttingTreeClass.Delete(id);
            BindGrid();
            //tbl_Student_Lang.Delete(temp.Attributes["GridID"].ToString());
        }
Exemplo n.º 2
0
        public void DeleteItem(object sender, System.EventArgs e)
        {
            String id = ((HtmlAnchor)sender).HRef.ToString();
            int    i  = CuttingTreeClass.Delete(Convert.ToInt32(id));

            if (i == 0)
            {
                LblMsg.Text = " error ";
                ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('خطا در حذف');", true);
            }
            else
            {
                BindGrid();
            }
            LightBox.Value = "0";
        }
Exemplo n.º 3
0
        public string deleteTree(ClCuttingTree oobbjj)
        {
            string ff = CuttingTreeClass.Delete(Convert.ToInt32(oobbjj.PersonalId)).ToString();

            return(ff);
        }