In ASP.NET MVC i have a route /search/{what}/{where}/{pagenr}/
And on my homepage i have 2 text inputs, in which i want the user to type something like:
text1: apples text2: spain.
If i use FormMethod.Post, this works fine, but i dont get the correct Url. I just get /search. In some other post someone mentioned to use FormMethod.Get, but then i get my posted values in querystring form, which is not what i want.
Can anyone tell me how i go from that input form, to the url that matches my route?
Of course i can do that with javascript. But i was thinking that there should be a better, MVC way of doing this?