G
Guest
In my Page_Load Method, I call a method by asynchronous callback to do some work. It's working fine until it calls back. Here is the problem in my callback method. Basically, I cannot redirect because it keeps on saying that the http headers has already been sent. It looks like it keeps on telling me that the response is complete. So nothing it could do about it. I really don't understand. Here is my code (in the callback method):
//this.CurrentContext.Response.Clear();
this.CurrentContext.Response.Redirect(this.CurrentContext.Request.ApplicationPath+"/DesktopDefault.aspx?tabindex="+this.CurrentContext.Request.Params["tabindex"]+"&tabid="+this.CurrentContext.Request.Params["tabid"]);
As you could see, I tried to clear the response first as well. Then the response.redirect won't even be evaluated.
If anyone has answer to this, please let me know. Thank you so much in advance
Also, if you anyone could provide or direct me to explanation of what's going on when I use thread in ASP.NET, I'd be really appreciated. Thank you.
//this.CurrentContext.Response.Clear();
this.CurrentContext.Response.Redirect(this.CurrentContext.Request.ApplicationPath+"/DesktopDefault.aspx?tabindex="+this.CurrentContext.Request.Params["tabindex"]+"&tabid="+this.CurrentContext.Request.Params["tabid"]);
As you could see, I tried to clear the response first as well. Then the response.redirect won't even be evaluated.
If anyone has answer to this, please let me know. Thank you so much in advance
Also, if you anyone could provide or direct me to explanation of what's going on when I use thread in ASP.NET, I'd be really appreciated. Thank you.