Form resubmitting error when smart search filters are applied.

stark g asked on March 25, 2019 07:21

Hi Team, I am using 5 smart search filters and a smart search result web part in my search results page, I am using auto post back in smart search filter to make it user friendly, but after this when i am selecting a filtered product and click on back button I am getting for resubmitting error, how to handle this with out changing the auto post back in the smart search filters.

Correct Answer

Brenden Kehren answered on March 25, 2019 14:01

Using an update panel works but as Roman states, it clears the filters out. What we typically do is use some javascript to push changes to the URL based on filter selections. Then when the user clicks the Apply Filter button it navigates to that page and the filters then select a value based on a URL parameter. This does a few things:

  1. Allows you to create a filtered page you can navigate to
  2. Allows you to retain the navigation history for the user searches
  3. Allows you to not get the prompt for form re-submission.
1 votesVote for this answer Unmark Correct answer

Recent Answers


Roman Hutnyk answered on March 25, 2019 09:37

I don't think there is a good solution...

While searching you do multiple postbacks, then you redirect to another page (product details) and once you hit back button, you are trying to navigate to previous action which, in fact, is postback. Now browser coe into a play and the confirmation you see is the way most browsers handle it.

To avoid this issue you might consider following:

  • either switch to query string/redirection strategy during search
  • open product details in a new tab as a workaround
1 votesVote for this answer Mark as a Correct answer

stark g answered on March 25, 2019 11:07 (last edited on March 25, 2019 11:10)

Thanks Roman Hutnyk, I will use this open product details in a new tab. and one more, update panel also resolved my issue but it is clearing all the applied filters when i click back button, where it is not good enough to use and few filters are not working, like skuprice High to low etc, I dont know why they are not able to work when the page is warped in update panel...

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on March 25, 2019 13:09

Update panel uses XHR post request, those are not captured in browsers history, that's why browser does not prompts you for form re-submission, but clears all the filters.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.