This is similar to the SO question here.. How to generate a path/url from a Route in the Routes table?
I have a controller called Person and ithas a post method called NameSearch. This method returns RedirectToAction(\"Index\"), or View(\"SearchResults\"), or View(\"Details\").
first: I did read and tried to implemented this and this and that, but I failed completely :( my route is like:
I created a route in ASP.net MVC application that looks like this: routes.MapRoute( \"ArticleRoute\", \"{year}/{month}/{day}/{articleId}/{displayName}\",
(Note: tried to look for similar question, but the closest one doesn\'t seem to match my question still. i.e. MVC - Application root appears twice in url using Url.Content/Url.Action )
I have a new MVC-2 project where I added the area \'member\'. I created a controller named: \'profile\'.
I have a fairly large ASP.NET MVC 2 project that has the Controllers separated into ano开发者_JAVA技巧ther project.I would like to create a View within a parent View.
I have a controller that uses the following structure: .com/Object/375 However, I can also use the following URL when I am accessing special admin rights
I have a view called Associations that has a drop down list and a button.When the user selects an option and presses submit, I want them to go to Association/{associationKey}.Association needs to work
I just edited my route for a user details page to look like this: routes.MapRoute( \"UserDetails\", // Route name