1

I have ASP.NET application and use the same ASPX page to display 3 different steps in some process. The address looks as following:

http://site/Order.aspx?ActionID=a&ActionDate=b&SeatType=&SeatsID=c&RowNumber=&Price=d&OpenID=e&MuzTVPas=e

But, on last step I need to display different url address that should look as following:

http://site/Order.aspx?Basket=thanks

So, is it possible to force displaying another address without all those parameters?

artragis
  • 3,677
  • 1
  • 18
  • 30
tesicg
  • 3,971
  • 16
  • 62
  • 121

2 Answers2

1

As far as I know the only way this can be done is to use the history.pushState on the client, can't imagine it's possible to do this server-side without causing a postback.

James
  • 80,725
  • 18
  • 167
  • 237
  • 1
    @tesicg [HTML5: Changing the browser-URL without refreshing page](http://spoiledmilk.com/blog/html5-changing-the-browser-url-without-refreshing-page/) – James Jul 18 '14 at 12:34
  • But, as I know not all versions of IE support it. Is there a way to overcome it? – tesicg Jul 21 '14 at 07:42
  • @tesicg the only alternative I can think of is the hashbang URL but you *probably* don't want to do that. I suggest you read [this thread](http://stackoverflow.com/questions/3009380/whats-the-shebang-hashbang-in-facebook-and-new-twitter-urls-for), I'd recommend for older browsers you simply for a refresh of the page. – James Jul 21 '14 at 08:58
0

You can use the URL Rewrite Module to acchieve this. Click here for more information.

lui1000
  • 89
  • 1
  • 6