Exemplo n.º 1
0
 /// <summary>转到错误页面</summary>
 /// <param name="owner">FrmBase</param>
 /// <param name="ex">Exception</param>
 public static void GotoErrorPage(FrmBase owner, Exception ex)
 {
     owner.getParameters().add("Message", ex.Message);
     owner.getParameters().add("ExStackTrace", ex.StackTrace);
     owner.Server.Transfer(ErrorPage);
 }
Exemplo n.º 2
0
 /// <summary>转到错误页面</summary>
 /// <param name="owner">FrmBase</param>
 /// <param name="message">string</param>
 public static void GotoErrorPage(FrmBase owner, string message)
 {
     owner.getParameters().add("Message", message);
     owner.Server.Transfer(ErrorPage);
 }