protected void BtnAddProc_Click(object sender, EventArgs e) { ProcesosClass proceso = new ProcesosClass(); bool IsAsigned = proceso.InsertAsignProc(true, DDLProcesosxasignar.SelectedValue, HdnIdComp.Value, true); if (IsAsigned) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myalert", "alert('El proceso " + DDLProcesosxasignar.SelectedItem + " ha sido asignado.'); 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 asignar el proceso, por favor intentelo nuevamente.');", true); } }