Pass string to error page
-
Hi, My code needs to send a string (error text) to an error page. What's the best way of doing it? The string might be quite long so I want to avoid just sending it as a parameter to the page though that's possible if the error string is short enough.
-
Hi, My code needs to send a string (error text) to an error page. What's the best way of doing it? The string might be quite long so I want to avoid just sending it as a parameter to the page though that's possible if the error string is short enough.
The best way is to send an error code which could be used by the error page to get the error description from some kind of key value pair storage
-
The best way is to send an error code which could be used by the error page to get the error description from some kind of key value pair storage
Thanks, I want to avoid an error code though because I want to display the actual exception detail if I get any and I can't guess as to what exceptions or detail I will get. My solution is that I've used a session variable instead because I can create it when an exception occurs and clear it after I've displayed it.