By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,483 Members | 3,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,483 IT Pros & Developers. It's quick & easy.

Passing exception to another page?

P: n/a
Hi,

Whats the best way to pass an exception object and some string params from
one aspx page to another. I cant use the Session or Application objects? Is
it possible to use the Context.Items collection?

Thanks

Donal
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Donal:

You can pass an object reference along in the Context.Items collection
if you are using Server.Transfer. Context.Items only sticks around for
the duration of the request, so if you do anything that creates a new
request (like Response.Redirect) you'll lose anything in the Items
collection.

Note: there is also HttpServerUtility.GetLastError that can be used in
some scenarios.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 12 Nov 2004 17:31:51 -0000, "Donal McWeeney"
<ma****@newsgroup.nospam> wrote:
Hi,

Whats the best way to pass an exception object and some string params from
one aspx page to another. I cant use the Session or Application objects? Is
it possible to use the Context.Items collection?

Thanks

Donal


Nov 18 '05 #2

P: n/a
Thanks Scott - thats the info I was looking for...

Thanks

Donal
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.