Sunday, December 10, 2006

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

Hi FOLKS,

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 :
response.redirect()
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.


Regards,
Moustafa arafa

4 comments:

  1. I try
    Server.Transfer("frmInstall.aspx"), but still dont work.

    Any ideia, thanks.

    ReplyDelete
  2. Server.Transfer is also not working

    ReplyDelete
  3. It is not working

    ReplyDelete

Note: Only a member of this blog may post a comment.