net错误处理机制(.net error handling mechanism).docVIP

  • 3
  • 0
  • 约3.63千字
  • 约 5页
  • 2017-09-05 发布于河南
  • 举报

net错误处理机制(.net error handling mechanism).doc

net错误处理机制(.net error handling mechanism)

net错误处理机制(.net error handling mechanism) A provides 4 error mechanism: Page_Error event ErrorPage attribute Application_Error event customErrors configuration The Page_Error event The Page_Error event provides a capture at the page level error method. You can only display the error message (as shown in the example code below), you can also record the events or perform some other operation. Private void Page_Load (object sender, System.EventArgs E) User code to {/ / Put initialize the page here Throw new Exception (Page Error!); } Protected void Page_Error (object sender, EventArgs E) { Except

文档评论(0)

1亿VIP精品文档

相关文档