ASPX中的异常处理 [英] Exception handling in ASPX Page

查看:80
本文介绍了ASPX中的异常处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

如果你可以帮我解决风暴情况会很棒。



我在一个网站工作asp.net平台,



现在,我有一个aspx页面说abc.aspx&我可以处理任何服务器错误,如

NullReferenceException, Page_Error()事件中的BadImageFormatExceptionetc。



现在有没有办法处理aspx页面中发生的任何错误?

目前我得到解析器错误,但这很好,只是想抓住上面

,就像我为任何特定网页的.cs文件一样。

Dear All,
It will be great if you can help me for bellow situation.

I am working in a website in asp.net platform,

Now ,I have a aspx page say abc.aspx & i can handle any server error like
NullReferenceException,BadImageFormatExceptionetc in Page_Error() event.

Now is there any way to handle for any error happened in aspx page for the same?
Currently i am getting parser error but that is fine , just want to catch above
as the same way i do for .cs file for any particular webpage.

推荐答案

我认为你的意思是在客户端处理一些事情。如果我没错,你应该看一下: http://stackoverflow.com/a/11257495 [< a href =http://stackoverflow.com/a/11257495target =_ blanktitle =新窗口> ^ ]



问候..
I think you mean to handle something on client side. If i'm not wrong, you should have a look at this : http://stackoverflow.com/a/11257495[^]

Regards..


关注,

异常处理和.NET

v
[ ^ ]



我希望它能起作用
Follow,
Exception Handling and .NET
v
[^]

I hope it will work


这篇关于ASPX中的异常处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆