Exemple #1
0
    protected void BtnDeleteProc_Click(object sender, EventArgs e)
    {
        ProcesosClass Proceso  = new ProcesosClass();
        bool          IsDelete = Proceso.UpdateAsignProc(HdnIdAsignProc.Value, ProcesosClass.COT_MASIGPROC.ESTADO, false);

        if (IsDelete)
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myalert", "alert('El proceso ha sido eliminado.'); window.location='" +
                                                    Page.ResolveUrl("~/View/Comercial/AdmVentas/Productos/EdicionComponente.aspx?ID=" + HdnIdComp.Value + "&TOKEN=" + TOKEN) + "';", true);
        }
        else
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myalert", "alert('Se produjo un error al tratar de eliminar el proceso, por favor intentelo nuevamente.');", true);
        }
    }