protected void Page_Load(object sender, EventArgs e) { try { UrlParameterPasser urlWrapper = new UrlParameterPasser(); TituloLabel.Text = urlWrapper["Opcion"]; } catch (Exception ex) { CedeiraUIWebForms.Excepciones.Redireccionar(ex, "~/Excepcion.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { try { UrlParameterPasser urlWrapper = new UrlParameterPasser(); string exString = urlWrapper["ex"]; Exception ex = new Exception(exString); Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(ex); ExLabel.Text = CedeiraUIWebForms.Excepciones.Detalle(ex); } catch { string auxEx = "Excepción tratando de mostrar o publicar la excepción original"; Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(new Exception(auxEx)); ExLabel.Text = auxEx; } }
public static void Redireccionar(Exception ex, string url) { UrlParameterPasser urlWrapper = new UrlParameterPasser(url); urlWrapper["ex"] = Detalle(ex); urlWrapper.PassParameters(); }
public static void Redireccionar(string idParm, string valor, string url) { UrlParameterPasser urlWrapper = new UrlParameterPasser(url); urlWrapper[idParm] = valor.Replace("<b>", String.Empty).Replace("<b/>", String.Empty); urlWrapper.PassParameters(); }