In one of my controllers, I do have a return that looks like this:
return RedirectToAction("AdministerFiles/ViewDataFiles?catid=14");
but when it renders the result to the browser the string becomes this one:
AdministerFiles/AdministerFiles/ViewDataFiles%3fcatid%3d14
how can I solve this ? thanks .
You just need the action as the parameter (along with the route data):
If you want to specify the controller as well (it defaults to the current controller), then you can do it like this: