0

I have a page that displays some search options as links. Basically what these options do is just change a parameter of the current URL.

Of course I can iterate through the Request.Url.AbsoluteUri and build another URL with the parameters changed but I was wondering if there's a better way to do that using some MVC feature.

Is there a way I can do that easily?

Andre Pena
  • 56,650
  • 48
  • 196
  • 243

1 Answers1

1

I think that there isn't "simple way" becuase of the defualt values! look at this question
But you can still use the @Url.Action and just change the params values, so it's still a "Simple way"

Community
  • 1
  • 1
gdoron
  • 147,333
  • 58
  • 291
  • 367