I Have a calendar at www.server.com/events/calendar. My event query string looks like www.server.com/events/calendar/seofriendly-event-query-string. But users can select the events by year and months using drop down lists, so mu query becomes www.server.com/events/calendar/2013 or even www.server.com/events/calendar/2013/12. So the problem is when I click the www.server.com/events/calendar/seofriendly-event-query-string I got www.server.com/events/calendar. How to arrange my routes to make them understand what I need to show: list or event?
Correct Route Patterns in MVC4
129 Views Asked by Roman At
1
There are 1 best solutions below
Related Questions in ASP.NET-MVC-4
- Jquery: Change contents of <select> tag dynamically
- redirect to actionResult method from an api
- Open another view through controller from jQuery?
- ASP MVC 5 Html.EditorFor not working / Unable to access/use Default Editor Templates
- Having error in updating my record in database my method as follows
- Is it possible to access an additional custom model property from viewdata.modelmetadata.properties?
- Which plugin is used to show the data in front end of socrata
- Set focus on button that triggered page reload
- jQuery: How to traverse / Iterate over a list of object
- Switching CSS Just for that view?
- Protractor, login to asp,net MVC login page, wait for default page then , redirect to angular page and do tests....how?
- Ajax.beginForm() cannot get post value
- Get desired html element's attribute value and set to hidden field before binding in Asp.Net MVC
- Get Value From Dynamically Populated Hidden Field
- Asp.net MVC Routelink null controller parameter
Related Questions in ROUTES
- Routing Url that has no action name
- Implementing find node on torrent kademlia routing table
- Get packet that's being routed
- Preserve `$location.search()` in angular `redirectTo`?
- Why does this MVC action return a 404 response in IE11
- Backbone: Best way to prevent routes (and url change)
- ASP.NET MVC routing 404
- Change the name of parent :parent_id parameter in Routing resources for Rails4
- Where should I put Symfony third-party bundle's routing configuration?
- How to route by call method in proxy with WSO2?
- Asp.net MVC Routelink null controller parameter
- using dart route package url got error 404
- Re-transmission concept in TCP
- Network unreachable when address is IPv6 in Buildroot
- rails_admin add custom controller in namespace admin
Related Questions in MAPROUTE
- Calling method in MapRoute MVC
- Custom MapRoute with URL compliant characters
- Correct Route Patterns in MVC4
- setting lookup values for the url paramater in routes.maproute
- MapRoute with my extension
- UWP Application : Map Route API (MapRouteFinder.GetDrivingRouteAsync) does not respond and even no way to refresh or cancel a request
- MVC Route URL to Area controller
- How to ASP.NET MVC3 Route to accept any type of file (Dot in URL)
- Ugly url in mvc3-how make it nice looking?
- Url Mapping: Don't want to have to type Index in the url
- How to control the behavior of Html.ActionLink with MapRoute
- Custom MapRoute
- MVC URL not rewriting
- route the url in MVC
- Custom objects as arguments in controller methods defined by MapRoutes
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
well I would add a custom route like this:
Your controller would then have an action method like this:
you just need to recieve the parameters and run some kind of check to determine if you are going to show an event or a list.