桃花长相依
处理.一般的try catch..和winform一样.try{
发生异常的代码;
}
catcha(Exception ex)
{
threw ex;
//在web页面代码页的话
//Page.ClientScript.RegisterStartupScript(this.GetType(), "jse", "alert('" + ex.Message + "')", true);
}在其它逻辑层的,就直接throw。在前台代码页捕捉,并友好提示。