Search code examples
asp.netajaxupdatepanelresponse.addheader

Another Update Panel problem ASP.NET


This is a branch off of my other question here

I am now able to add my javascript in asynchronously but it does not redirect my page properly.

Currently I use this to redirect my page

Response.AddHeader("Refresh", "1;URL=mypage.aspx")

The reason I use the Response.AddHeader is so that I can delay the redirect

Is there something different I need to do with this to make it add the header asynchronously?


Solution

  • Have you tried redirecting with javascript?

    setTimeout("window.location='mypage.aspx';", 1000);