コード例 #1
0
 public string AgreeProtest_delete(string AgreePercentProtestID)
 {
     try
     {
         return(AgreePercentProtestClass.Delete(AgreePercentProtestID).ToString());
     }
     catch
     {
         return("0");
     }
 }
コード例 #2
0
        public void DeleteItem(object sender, System.EventArgs e)
        {
            String AgreePercentProtestID = ((HtmlAnchor)sender).HRef.ToString();
            int    i = AgreePercentProtestClass.Delete(AgreePercentProtestID);

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