Last post Jul 30, 2013 06:42 AM by mhcodner
Jul 30, 2013 04:02 AM|mhcodner|LINK
I have finally managed to implement JQuery Ajax upload on my ASP.NET web pages site but now I would like to know how to redirect to a page with the id of what was uploaded, if I put the redirect in my upload handler it doesn't work. Does anyone have any
idea how to use Response.Redirect(); after an Ajax upload?
Jul 30, 2013 04:07 AM|dhavalu|LINK
Register for UploadedComplete (ajax success on clientside) event and Redirect from their.
Jul 30, 2013 04:14 AM|mhcodner|LINK
Um what? ASP.NET web pages has no codebehind
Jul 30, 2013 04:55 AM|mhcodner|LINK
Response.Redirect("~/Game/" + db.GetLastInsertId());
Jul 30, 2013 06:31 AM|Mikesdotnetting|LINK
If you want to redirect the user to another page after the post, there seems little point in using AJAX to do the upload.
Jul 30, 2013 06:42 AM|mhcodner|LINK
dhavalu said. I decided to get the last db insert by having it as the AJAX response and then using that response in
window.location = '/Game/' + xhr.responseText.trim();
Which seems to work fine