Questions tagged [mvcroutehandler]

Questions about routing within ASP.Net MVC

36 questions
0
votes
1 answer

MVC Route Mapping

I have a website, xyz.com and users are setting up admin accounts where they then have other users that are registering under them. They call their account name wisconsinsponsor. Another user sets up another account called iowasponsor. So I want…
Adam
  • 497
  • 2
  • 9
  • 29
0
votes
2 answers

MVC 4: Custom Route & Html.Action out of synch

So I have this custom route, which sets up the route table based on culture in the URL, but when I call Url.Action(...), it does not generate the localized URL. Any ideas what I'm doing wrong? The culture is changing on the page and I am able to…
Ostati
  • 4,623
  • 3
  • 44
  • 48
0
votes
3 answers

Dynamic MVC Routing : Action name

I have a Controller named About and an Action named Index. I want the URL to be like this (action name will be dynamically): www.example.com/about/aaa www.example.com/about/bbb www.example.com/about/ccc Routing routes.MapRoute( name: "About", …
Velu
  • 887
  • 4
  • 14
  • 30
0
votes
1 answer

MVC.NET Custom Root Handler Wrong action in Html:BeginForm

I used custom mvc route handler. But When I use Html.BeginForm or Ajax.BeginForm in the view, Action parameters change unexpectedly. My codes are above My Register Route method is : public static void RegisterRoutes(RouteCollection routes) { …
0
votes
1 answer

MVC n-level route building

I want to create a productcatalog with N-Level Categories e.g. /Catalog/Category1/Category2/../SubCategoryN/Product/{ProductActions}/{ID} And at the same time be able to /Catalog/Category1/Category2/../SubCategoryN/{CategoryActions} Is that…
Claus Thomsen
  • 2,325
  • 2
  • 24
  • 27
-1
votes
3 answers

MVC routing issue to make two methods work

I have product controller and two methods edit and fileupload. what should I do in my route config to make these two work. Product/6 (for editing productid 6) Product/Fileupload (for uploading file). my current route in routeconfig is as follows: …
Learner
  • 1,277
  • 3
  • 15
  • 34
1 2
3