errorhandling with response.redirect
From: Roel (vdbroel_at_pandora.be)
Date: 06/24/04
- Next message: moondaddy: "Re: How to clear parameter out of url"
- Previous message: Gibby: "File downloads to client"
- Next in thread: Nicole Calinoiu: "Re: errorhandling with response.redirect"
- Reply: Nicole Calinoiu: "Re: errorhandling with response.redirect"
- Reply: avnrao: "Re: errorhandling with response.redirect"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Jun 2004 15:40:46 +0200
Hello
When I have an exception within a try - catch block, I sent the user to my
error page with the following code:
Response.Redirect(@"error.aspx?errmsg=" + ex.Message + "&errsource=" +
ex.Source + "&errstack=" + ex.StackTrace);
The problem is that when there is an \n - sign in the error message or
stacktrace, I get the error "Redirect URI cannot contain newline characters"
Is there anybody who knows how I can transform the "ex.Message" into a
@string or is there another way to solve this problem
Regards
Roel
- Next message: moondaddy: "Re: How to clear parameter out of url"
- Previous message: Gibby: "File downloads to client"
- Next in thread: Nicole Calinoiu: "Re: errorhandling with response.redirect"
- Reply: Nicole Calinoiu: "Re: errorhandling with response.redirect"
- Reply: avnrao: "Re: errorhandling with response.redirect"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|