I would like to give the user the ability to return to a previous page with pagination controls after submitting a form. Typically I use post but this will not pass the in the URL.
Is it recommended to use get instead?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nothing prevents you from saving the pagination information in the form. For example you are at:
A link on the page can redirect the user to
Save the page and maxperpage as hidden controls into the form reloading them each time you show the form (in case of postback errors)
Then when the postback is complete, use the _POST hidden fields to redirect to that previous page:
Obviously, i’ve skipped a lot of stuff in there such as validation so don’t forget to put some in…