Hello all,
I have a product page that has a format 10 items per page. Right now, whenever I edit an item, after I hit save, my RESPONSE.REDIRECT will send me back to page 1, doesn't matter what page I was in earlier.
Response.Redirect "../default.asp?type=0"
What I want is to take me back to the previous particular page that I was in when I edit a product from after I hit save. My way of solving the problem is to add:
Response.Redirect "../default.asp?type=0&page=request.querystring("page")"
which page number is refered to by a string pass through with a edit's URL info:
<a href="printers/edit.asp?productid=<% =rsPrinter("ProductID") %>&page=request.querystring("page")">edit</a>
I don't know whether the modification will work or not but I believe there's better way to go back or something.
Thanks!
I have a product page that has a format 10 items per page. Right now, whenever I edit an item, after I hit save, my RESPONSE.REDIRECT will send me back to page 1, doesn't matter what page I was in earlier.
Response.Redirect "../default.asp?type=0"
What I want is to take me back to the previous particular page that I was in when I edit a product from after I hit save. My way of solving the problem is to add:
Response.Redirect "../default.asp?type=0&page=request.querystring("page")"
which page number is refered to by a string pass through with a edit's URL info:
<a href="printers/edit.asp?productid=<% =rsPrinter("ProductID") %>&page=request.querystring("page")">edit</a>
I don't know whether the modification will work or not but I believe there's better way to go back or something.
Thanks!