Today Tip : "Response is not available in this context."


if you tried to wirte Response.redirect() in Global.asax you will get this error :
Response is not available in this context.”

to resolve this problem,just replace :
to Server.Transfer()

the problem happens because of the Response.Redirect is working if there’s a HTTP handler for the current request,which is not the case in Global Errors raised in global.asax.

happy .netting.

Moustafa arafa

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>