예제 #1
0
        public void DeleteItem(object sender, System.EventArgs e)
        {
            String cid = ((HtmlAnchor)sender).HRef.ToString();
            //ClCompany cl = new ClCompany();
            //cl.CompanyID = Convert.ToInt32(cid);

            int i = CompanyClass.Delete(cid);

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

            LightBox.Value = "0";
        }