开发者

On error Resume next in ASP

开发者 https://www.devze.com 2023-01-10 06:10 出处:网络
HI, I want to catch SQL error in my Page.If I use \"On error Resume next\" ,If page having some other error it wont throw开发者_StackOverflown .Can u plese give solution for handling errorYou can rev

HI,

I want to catch SQL error in my Page.If I use "On error Resume next" ,If page having some other error it wont throw开发者_StackOverflown .Can u plese give solution for handling error


You can revert the standard exception raising by using

ON ERROR GOTO 0

http://www.powerasp.com/content/new/on-error-resume-next.asp


Also, don't forget that if you put On Error Resume Next in a Sub or a Function it will only apply to that Sub/Function.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号