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

John Bubriski picture John Bubriski · May 12, 2009 · Viewed 27.5k times · Source

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.

Answer

rvarcher picture rvarcher · May 12, 2009

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