Use the overloads that take the controller name too…
return RedirectToAction("Index", "MyController");
and
@Html.ActionLink("Link Name","Index", "MyController", null, null)
Related Contents:
- File Upload ASP.NET MVC 3.0
- Returning a file to View/Download in ASP.NET MVC
- How can I return the current action in an ASP.NET MVC view?
- ASP.NET MVC Razor render without encoding
- Build error: You must add a reference to System.Runtime
- C# Entity-Framework: How can I combine a .Find and .Include on a Model Object?
- Email address validation using ASP.NET MVC data type attributes
- Routing with Multiple Parameters using ASP.NET MVC
- MVC which submit button has been pressed
- “application/json” constant in .NET framework
- Authorize Attribute with Multiple Roles
- CS1617: Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
- ASP.NET MVC passing an ID in an ActionLink to the controller
- “Missing compiler required member” error being thrown multiple times with almost no changes to code
- Why create an ASP.NET 5 Class Library project?
- System.web.mvc missing
- How to get an ASP.NET MVC Ajax response to redirect to new page instead of inserting view into UpdateTargetId?
- Could not load file or assembly ‘Microsoft.Web.Infrastructure,
- MVC: Where to put business logic? [closed]
- How to Implement Password Resets?
- Ignoring a field during .NET JSON serialization; similar to [XmlIgnore]?
- Is ApiController deprecated in .NET Core
- How do you debug MVC 4 API routes?
- ASP.NET MVC Global Variables
- ASP.NET MVC Binding to a dictionary
- ASP.NET Core v2 (2015) MVC : How to get raw JSON bound to a string without a type?
- The model item passed into the dictionary is of type ‘mvc.Models.ModelA’ but this dictionary requires a model item of type ‘mvc.Models.ModelB‘
- How do I redirect a user when a button is clicked?
- Getting Project Root Path In Controller ASP.NET MVC?
- Email model validation with DataAnnotations and DataType
- HttpRequest vs HttpRequestMessage vs HttpRequestBase
- Fire and forget async method in ASP.NET MVC
- Html.TextboxFor default value for Integer/Decimal to be Empty instead of 0
- The specified cast from a materialized ‘System.Int32’ type to the ‘System.Double’ type is not valid
- How do I create a custom membership provider for ASP.NET MVC 2?
- MVC Form not able to post List of objects
- The AspNetUserLogins table Identity
- Html.ActionLink cannot be dynamically dispatched
- How to route EVERYTHING other than Web API to /index.html
- What’s the current best solution for generating HTML from ASP.NET Razor templates within a Console Application?
- ASP.NET MVC Architecture : ViewModel by composition, inheritance or duplication?
- MVC : The parameters dictionary contains a null entry for parameter ‘k’ of non-nullable type ‘System.Int32’
- Use of IsAssignableFrom and “is” keyword in C#
- Entity vs Model vs View Model
- MVC4 bundling CSS failed Unexpected token, found ‘@import’
- ASP.NET MVC Controller post method unit test: ModelState.IsValid always true
- Using DataAnnotations to compare two model properties
- TextBoxFor displaying initial value, not the value updated from code [duplicate]
- Exclude/Remove Value from MVC 5.1 EnumDropDownListFor
- Bind query parameters to a model in ASP.NET Core