asp.net - Application_Error takes precedence over Page_Error -



asp.net - Application_Error takes precedence over Page_Error -

i have both page_error method in page raises error, , application_error in global.asax. when page throws exception, executed routine application_error. 1 particular page have different handling in page_error. there way accomplish it?

thanks, pawel

p.s. perhaps because exception beingness thrown caused big file beingness uploaded (i tested file upload page how handles files bigger web.config setting) , page_error not yet wired?

from same function of page_error can check page , if 1 have diferent behavior.

if( httpcontext.current.request.path.endswith("yourfilename.axd", stringcomparison.invariantcultureignorecase)) { // diferent way } else { }

the next way within page diferent behavior.

public override void processrequest(httpcontext context) { seek { base.processrequest(context); } grab (exception x) { // here different, since grab here not move page_error // except code error... in case can error clear. } }

asp.net global-asax

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -