K
kurt sune
I have a generic errorhandler in global.asax.
(in Application_Error)
I need to transfer an error string from global asax to a generic error page.
So I try: this code with the thought of picking up the string from session
an Error.aspx.
1 Dim errorString As String = "the whole error string"
2 Try
3 Session("Error") = errorString
4 Response.Redirect("Error.aspx")
But sometimes I get error on row 4: "Session state is not available in this
context."
Isn't Session always available in Global.asax? (it works sometimes)
Do you have a better idea of how to transfer large text from global asax to
a generic error page?
/k
(in Application_Error)
I need to transfer an error string from global asax to a generic error page.
So I try: this code with the thought of picking up the string from session
an Error.aspx.
1 Dim errorString As String = "the whole error string"
2 Try
3 Session("Error") = errorString
4 Response.Redirect("Error.aspx")
But sometimes I get error on row 4: "Session state is not available in this
context."
Isn't Session always available in Global.asax? (it works sometimes)
Do you have a better idea of how to transfer large text from global asax to
a generic error page?
/k