コード例 #1
0
 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");
     }
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
ファイル: Excepciones.cs プロジェクト: pjeconde/CedForecast
 public static void Redireccionar(Exception ex, string url)
 {
     UrlParameterPasser urlWrapper = new UrlParameterPasser(url);
     urlWrapper["ex"] = Detalle(ex);
     urlWrapper.PassParameters();
 }
コード例 #4
0
ファイル: Excepciones.cs プロジェクト: pjeconde/CedForecast
 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();
 }