Search code examples
asp.netpostbackquery-stringpostbackurl

Is there a way to clear query string parameters when posting back?


I have a form that sometimes gets linked to with some query string parameters. The problem is that when I post back the form, the query string parameter is still there. It's not really an issue the way I have it setup, but I just don't like it being there, and could see it being a problem if you needed to check for input in a certain order.

Is there a way to clear that query string parameter in an easy, clean way? I know I could change the PostBackURL on the button, but that doesn't seem too efficient.


Solution

  • No, I haven't seen a way to clear it out without a redirect.