redirecting within on ReceivingFile method

Mar 18, 2010 at 12:50 PM

hello, i was trying to redirecting to an other page (after the uploading process) using the ReceivingFile method, but the redirecting doesn't works

  1. protected void ReceivingFile(object sender, com.flajaxian.FileReceivedEventArgs e)
  2. {
  4.     if (e.isLast) {
  6.         Response.Redirect("~/page1.aspx");
  7.     }
  10. }

Anyone knows if is it possible the redirecting process?


Thank you

Mar 18, 2010 at 7:48 PM

Am i missing anything?

Mar 18, 2010 at 8:36 PM

You need to read some web tutorials of what is ajax and how it works. In ajax architecture you have two separate requests.

Mar 18, 2010 at 11:00 PM

I have thought that the "ReceivedFile" was a server-side method, just like "OnFileNameDetermining" is

Ok, I will do the client-side redirect in Javascript,  It's no so hard to understand it

and, debugging the code above, the line number 4 is executed and the number 6 not