If there is a requirement like this, see below explanation:-
Suppose we have an action Method that gets called in the URL like:-
public ActionResult Example(int id, int exampleId)
{
}
Now remember one thing the id parameter will always be one. You can see the routeconfig.cs in App_Start folder to check.
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new
{
controller = "Home",
action = "Index",
id = UrlParameter.Optional
}
);
this is how the id is mentioned in routes.
But in our Action method we need exampleId also.
So our Url should look like for id=101 and example=201.
Home/Example/101?exampleId=201
But the Url like you have mentioned is not possible. When you want to pass more than one Id then query strings would be used like I have mentioned & for more that 2 id you use & operator for adding query strings.
Hope this helps.
Post back your queries if any.
Thanks.
:)