Hello Everyone,
I search and read all the questions i could find here and in google, and I can't seem to find the answer!
The Rout in questions is this:
routes.MapRoute("Admin - Change Password", "Admin/ResetPassword/{UserId}", New With {.controller = "Admin", .action = "ResetPassword", .UserId = ""})
The Url It Generates is: /Admin/UserAdmin
which is the page the url.action is on. No idea if that matters or not.
When I used the route debugger it showed the Url I expect it to generate as matching the URL i typed in my address bar.
True Admin/ResetPassword/{UserId} controller = Admin, action = ResetPassword, userId =
The only other routes it matched were:
True {controller}/{action}/{id} controller = Home, action = Index, id =
True {*catchall} (null)
The {controller}/{action}/{id} route is the last one, so it shouldn't be interfering.
Any Ideas?
EDIT: the code of the helper:
<%Url.Action("ResetPassword", "Admin", new with {.UserId= u.userId}) %>