晕,搞这么复杂干吗,
try
catch
throw()就可以了
try
catch
throw()就可以了
解决方案 »
- 问各位大侠一个很简单的问题啊,关于DataSet的问题
- 帮做一个系统,数据库设计方法请教一下高手。
- updatepanel问题
- 获取DropDownList控件的ID
- 系统登陆不上
- 高手挑战一下高分提问:写个程序实现自动对指定url地址的页面进行抓图!
- 求救!asp.net怎样获取HTML表单File中的路径
- 后台用的是frameset,怎么实现 弹窗(弹页面)+ 锁屏 的效果?在线等
- ASP.NET里,怎样在一个表格内同时显示文字和图片?
- 讨论:在asp.net里用哪种数据库连接方法比较好?
- 各位大虾 我基本ASP。NET就没有成功运行过,求救
- 用CInt(TextBox.Text)不能转换为int类型的数据吗?
Throw New System.Exception("An exception has occurred.")
表示你的操作不符合它的要求。
你只要通过
try-catch语句就能够捕捉到异常
// Code that throws exceptions
} catch(OverflowException e) {
// Catch a specific exception
} catch(Exception e) {
// Catch the generic exceptions
} finally {
// Execute some cleanup code
}