Exemplo n.º 1
0
 protected void grid_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     using (MooDB db = new MooDB())
     {
         Logger.Warning(db, "删除邮件#" + e.Keys[0]);
     }
 }
Exemplo n.º 2
0
 protected void gridHistoricData_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null) {
         showException(e.Exception, labelException, "deleting the asset class prices");
         e.ExceptionHandled = true;
     }
 }
Exemplo n.º 3
0
 protected void gridBenchmarkData_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null) {
         showException(e.Exception, labelException, "deleting the benchmark prices");
         e.ExceptionHandled = true;
     }
 }
Exemplo n.º 4
0
 protected void GridViewCiudades_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         lblError.Visible = true;
         lblError.Text = "Ciudad Eliminada";
         lblError.ForeColor = Color.Green;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.InsufficientPrivilegeException))
     {
         lblError.Visible = true;
         lblError.Text = "No Tiene Los Permisos Suficientes Para Eliminar La Ciudad";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.ClienteConExpedientes))
     {
         lblError.Visible = true;
         lblError.Text = "No Se Puede Eliminar La Ciudad Seleccionada Ya Que Existen Clientes / Abogados Asociados A La Misma";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else
     {
         lblError.Visible = true;
         lblError.Text = "Se Ha Producido Un Error Inesperado";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
 }
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         ErrorLabel.Text = "First delete all the sections and faculty of department";
     }
 }
Exemplo n.º 6
0
 protected void grid_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     using (MooDB db = new MooDB())
     {
         Logger.Warning(db, string.Format("删除帖子#{0}的项#{1}", ViewState["postID"], e.Keys[0]));
     }
 }
Exemplo n.º 7
0
 protected void GridViewConsultas_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         lblError.Text = "Consulta Eliminada";
         lblError.ForeColor = Color.Green;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.InsufficientPrivilegeException))
     {
         lblError.Text = "No Tiene Los Permisos Suficientes Para Eliminar La Consulta";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.ClienteConExpedientes))
     {
         lblError.Text = "No Se Puede Eliminar La Consulta Seleccionado Ya Que Posee Expedientes Iniciados";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else
     {
         lblError.Text = "Se Ha Producido Un Error Inesperado";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
 }
Exemplo n.º 8
0
 protected void gridStrategy_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null) {
         showException(e.Exception, labelException, "deleting the strategy");
         e.ExceptionHandled = true;
     }
 }
Exemplo n.º 9
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     // If we just deleted the last row in the GridView, decrement the PageIndex
     if (GridView1.Rows.Count == 1)
         // we just deleted the last row
         GridView1.PageIndex = Math.Max(0, GridView1.PageIndex - 1);
 }
Exemplo n.º 10
0
 protected void Categories_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     // Delete the brochure file if there were no problems deleting the record
     if (e.Exception == null)
     {
         DeleteRememberedBrochurePath();
     }
 }
Exemplo n.º 11
0
 protected void gridContent_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         showException(e.Exception, labelException, "deleting the Text Content");
         e.ExceptionHandled = true;
     }
 }
Exemplo n.º 12
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         this.Label1.Text = e.Exception.Message;
         e.ExceptionHandled = true;
     }
 }
Exemplo n.º 13
0
 protected void gvProducts_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         lblError.Text = "A database error has occurred.<br /><br />" +
           e.Exception.ToString();
     }
 }
Exemplo n.º 14
0
 protected void GridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         this.Alert("Không thể xóa khi tồn tại cấp nhỏ hơn.");
     }
 }
Exemplo n.º 15
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         LabelError.Visible = true;
         e.ExceptionHandled = true;
     }
 }
Exemplo n.º 16
0
 protected void deletedNews(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         mensagemErro.Text = "News Article deleted.";
         NewsMultiView.ActiveViewIndex = 0;
     }
 }
Exemplo n.º 17
0
    // 資料刪除處理
    protected void gv_Ad_Member_RowDeleted(object sender, GridViewDeletedEventArgs e)
    {
        int mpage = gv_Ad_Member.PageCount - 1;

        gv_Ad_Member.DataBind();
        if (gv_Ad_Member.PageIndex + 1 > gv_Ad_Member.PageCount)
            gv_Ad_Member.PageIndex = mpage - 1;
    }
Exemplo n.º 18
0
 protected void listaRamoGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.ExceptionHandled)
     {
         string mensaje;
         if (((System.Data.SqlClient.SqlException)(e.Exception)).Number == 547) mensaje = "No se puede eliminar el registro por exister registros relacionados.";
         else mensaje = e.Exception.Message;
         Page.ClientScript.RegisterStartupScript(this.GetType(), "DeleteError", "alert('" + mensaje + "');", true);
     }
 }
Exemplo n.º 19
0
 protected void GridView_SunavniRegister_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         ShowMessage("Record has been deleted successfully", false);
     }
     else
     {
         ShowMessage("Unable to delete record", true);
     }
 }
Exemplo n.º 20
0
 protected void gvUsers_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         lblReport.report(false, "Error Deleting", e.Exception);
         e.ExceptionHandled = true;
     }
     else
     {
         lblReport.report(true, "User Profile Deleted", null);
     }
 }
Exemplo n.º 21
0
 protected void GridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         ActionStatus.Text = "Không thể xóa khi tồn tại cấp nhỏ hơn.";
         e.ExceptionHandled = true;
     }
     else
     {
         ActionStatus.Text = "";
     }
 }
Exemplo n.º 22
0
 //error handling for row deleted
 protected void gvwCSAdmin_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         lblErrorMessage.Text = "A database error has occurred.<br /><br />" +
             "Message: " + e.Exception.Message;
         e.ExceptionHandled = true;
     }
     else if (e.AffectedRows == 0)
         lblErrorMessage.Text = "Another user may have updated that category." +
             "<br />Please try again.";
 }
 protected void grdDiskografije_RowDeleted(Object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         porukaPromjene.InnerText = "Uspješno obrisano";
     }
     else
     {
         porukaPromjene.InnerText = "Dogodila se greška pri brisanju";
         e.ExceptionHandled = true;
     }
     ddlDiskografija.Items.Clear();
     OsvjeziPodatke();
 }
Exemplo n.º 24
0
 protected void gvSubUnits_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     clear();
     if (e.Exception != null)
     {
         lblSubUnitReport.report(false, Resources.Common.Error + " - <span class='smaller'>" + GetLocalResourceObject("UsersAssigned").ToString() + "</span>", e.Exception);
         e.ExceptionHandled = true;
         ddlUnitSelected.DataBind();
     }
     else
     {
         lblSubUnitReport.report(true, Resources.Common.Deleted, null);
     }
 }
 protected void grdScheduleTasks_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         if (e.Exception.InnerException is System.Data.SqlClient.SqlException)
         {
             System.Data.SqlClient.SqlException err = e.Exception.InnerException as System.Data.SqlClient.SqlException;
             if (err.ErrorCode.Equals(Convert.ToInt32("0x80131904", 16)))
             {
                 ShowError("O registro não pode ser apagado pois há outros registros associados!");
                 e.ExceptionHandled = true;
             }
         }
     }
 }
Exemplo n.º 26
0
 protected void gvUnits_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     clear();
     if (e.Exception != null)
     {
         lblUnitReport.CssClass = "error top_error";
         lblUnitReport.Text = GetLocalResourceObject("HasSubUnits").ToString() + "<div class='sub_error'>" + e.Exception.Message + "</div>";
         e.ExceptionHandled = true;
     }
     else
     {
         lblUnitReport.report(true, Resources.Common.Deleted, null);
         updateDdls();
     }
 }
 protected void grdCustomerFollowupAction_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         if (e.Exception.InnerException is System.Data.SqlClient.SqlException)
         {
             System.Data.SqlClient.SqlException err = e.Exception.InnerException as System.Data.SqlClient.SqlException;
             if (err.ErrorCode.Equals(Convert.ToInt32("0x80131904", 16)))
             {
                 ShowError(Resources.Exception.DeletingRegisterWithForeignKey);
                 e.ExceptionHandled = true;
             }
         }
     }
 }
Exemplo n.º 28
0
    protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
    {
        if (e.Exception != null)
        {
            lblError.Text = "An exception occurred. " +
                "No rows were deleted.<br /><br />" +
                "Message: " + e.Exception.Message;

            e.ExceptionHandled = true;
        }
        else if (e.AffectedRows == 0)
            lblError.Text = "No rows were deleted. " +
                "Another user may have updated that category.<br />" +
                "Please try again.";
    }
Exemplo n.º 29
0
    protected void GridViewEstadoCivil_RowDeleted(object sender, GridViewDeletedEventArgs e)
    {
        lblError.Visible = true;

        if (e.Exception == null)
        {
            lblError.ForeColor = Color.Green;
            lblError.Text = "El Estado Civil Ha Sido Borrado Exitosamente";
        }
        else
        {
            lblError.ForeColor = Color.Red;
            lblError.Text = "No Se Pudo Borrar El Estado Civil";
            e.ExceptionHandled = true;
        }
    }
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     {
         //SqlConnection Scon2;
         //SqlDataReader Reader2;
         //SqlCommand Cmd2; StreamReader sr2 = new StreamReader(Request.PhysicalApplicationPath.ToString() + "//dBLoc.txt"); line = sr2.ReadLine();
         //string sConnection2 = "Data Source=" + line + "\\SQLEXPRESS;Database=CIT;User=sydrick;password=1234567";
         //string sql2;
         //sql2 = " DELETE FROM course_bulk where course = '" + exname + "'";
         //Scon2 = new SqlConnection(sConnection2);
         //Scon2.Open();
         //Cmd2 = new SqlCommand(sql2, Scon2);
         //Reader2 = Cmd2.ExecuteReader();
     }
     Label14.Text = "Assigned course to faculty has been deleted.";
 }
Exemplo n.º 31
0
 protected void gvCategorias_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     ((Principal)this.Master).AtualizarCategorias();
 }
Exemplo n.º 32
0
 protected void GvPundles_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
 }
Exemplo n.º 33
0
 protected void grdCustomers_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
 }
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     FormView1.DataBind();
 }
Exemplo n.º 35
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     updateAmount();
 }
Exemplo n.º 36
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
 }
Exemplo n.º 37
0
 /// <summary>
 /// Rebind Contact Methods on delete
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ContactMethodRecordDeleted(object sender, GridViewDeletedEventArgs e)
 {
     PopulateContactMethodsGrid();
 }
Exemplo n.º 38
0
 /// <summary>
 /// Rebind Associated Organizations on delete
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void OrgGridRecordDelete(object sender, GridViewDeletedEventArgs e)
 {
     PopulateOrgRptr();
     LoadOrganizationsList();
 }
 protected void grid_cardetail_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
 }
 /// <summary>
 /// Event occurs when a lease is deleted
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void gvYourLeases_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     //refresh avaliable slips after deleting a users lease
     gvSlips.DataBind();
 }
Exemplo n.º 41
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     Response.Redirect(Request.RawUrl);
 }
Exemplo n.º 42
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     Show_tien();
     set_thanhtien();
     //set_hd();
 }
Exemplo n.º 43
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     lblErrorMessage.Text = "Data Deleted Successfully";
 }
Exemplo n.º 44
0
 protected void gvPostalDetails_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     gvPostalDetails.DataBind();
 }
Exemplo n.º 45
0
 protected void GridView2_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     Response.Write("<script>window.parent.location.reload();</script>");
 }
Exemplo n.º 46
0
 protected void gvKeySearch_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
 }
Exemplo n.º 47
0
 protected void grvPagos_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     this.ActualizaTotales();
 }
Exemplo n.º 48
0
 protected void grdCartItems_ItemDeleted(object source, GridViewDeletedEventArgs e)
 {
     runningTotal = 0;
 }
Exemplo n.º 49
0
 protected void gridInput_OnRowDeleted(object sender, GridViewDeletedEventArgs e)
 {
 }
 protected void dgvCharter_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     dgvCharter.EditIndex = -1;
     this.BindGrid();
 }
Exemplo n.º 51
0
 /// <summary>GridViewの行の削除ButtonがClickされ、行が削除された後に発生するイベント</summary>
 protected void gvwGridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     // ここでは何もしない
 }
Exemplo n.º 52
0
 protected void gridList_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     //logger.Debug("content deleted redirecting - ");
     //Response.Redirect("Contents.aspx?SectionID="+sectionID);
 }
Exemplo n.º 53
0
 protected void Gridview1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     PriceJoursLinqDataSource1.DataBind();
     Gridview1.DataBind();
 }
Exemplo n.º 54
0
    protected void NotificationTypeList_RowDeleted(object sender, GridViewDeletedEventArgs e)
    {
        int CurrentID = Micajah.Common.Helper.Convert.o2i(e.Keys["NotificationTypeID"]);

        DL_WEB.DAL.Client.ActivityLog.Instance.RegisterActivity(ActivityTypes.NotificationTypeDeleted, "NotificationType " + m_Name + " deleted", ActivityObject.NotificationType, CurrentID, DL_WEB.DAL.Master.User.GetUserGUID(User.Identity.Name), Context.User.Identity.Name);
    }
 protected void gdvDept_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     gdvDept.DataBind();
 }
 protected void GridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     this.showTextMessage("The profile has been deleted");
 }
Exemplo n.º 57
0
 protected void gvParts_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
 }
Exemplo n.º 58
0
 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     Response.Redirect(string.Format("UserGroupUserEdit.aspx?Code={0}", Request.QueryString["Code"]));
 }
Exemplo n.º 59
0
 protected void gvEmployees_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     this.gvEmployees.DataSourceID = "dsSearchEmployee";
 }
Exemplo n.º 60
0
    protected void GridView2_RowDeleted(object sender, GridViewDeletedEventArgs e)
    {
        string js = "thisMonth();";

        ScriptManager.RegisterStartupScript(this, this.GetType(), "cal", js, true);
    }