1. 通过<customErrors mode="On" defaultRedirect="error.htm"/> 统一捕获所有Exception
2. 以category页面为例,
   String idString;
   idString = this.Page.Request.QueryString["id"];   
   moduleCategoryID = Int32.Parse(idString);
可捕获几种错误:
(1)没有页面参数id
(2)页面参数id的值为""
(3)页面参数id的值不是数字.

简单,直接!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2022-01-15
猜你喜欢
  • 2021-11-07
  • 2021-08-10
  • 2022-12-23
  • 2021-08-04
  • 2021-10-16
  • 2021-08-15
相关资源
相似解决方案