Пример #1
0
        protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int itemID = (int)GridView1.DataKeys[e.RowIndex].Value;

            GiftCertificateController controller = new GiftCertificateController();

            controller.DeleteGiftCert(this.ModuleId, itemID);
            FillGrid();
        }
 protected void cmdDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (!Null.IsNull(itemId))
         {
             GiftCertificateController controller = new GiftCertificateController();
             controller.DeleteGiftCert(this.ModuleId, itemId);
             Response.Redirect(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "List", "mid=" + ModuleId.ToString()), true);
             // Response.Redirect(Globals.NavigateURL(), true);
         }
     }
     catch (Exception ex)
     {
         Exceptions.ProcessModuleLoadException(this, ex);
     }
 }