Your method needs to return a ActionResult
type:
public ActionResult Index()
{
//All we want to do is redirect to the class selection page
return RedirectToAction("SelectClasses", "Registration");
}
More Related Contents:
- Redirect From Action Filter Attribute
- Redirecting unauthorized controller in ASP.NET MVC
- how to add querystring values with RedirectToAction method?
- Smtp authentification required [duplicate]
- c# asp.net delete last comma [closed]
- Pass List of Checkboxes into View and Pull out IEnumerable [duplicate]
- ASP.NET MVC $.post call returning string…need help with format for jqGrid
- RedirectToAction with parameter
- Sharing sessions across applications using the ASP.NET Session State Service
- Making a Simple Ajax call to controller in asp.net mvc
- Get controller and action name from within controller?
- Preprocessor directives in Razor
- DropDownList in MVC 4 with Razor
- Injecting dependencies into ASP.NET MVC 3 action filters. What’s wrong with this approach?
- Difference between MVC 5 Project and Web Api Project
- How to save image in database using C# [closed]
- How do I dispose my filestream when implementing a file download in ASP.NET?
- C# mvc 3 using selectlist with selected value in view
- How to implement Permission Based Access Control with Asp.Net Core
- How do I setup multiple auth schemes in ASP.NET Core 2.0?
- Create zip file from byte[]
- Application can’t scaffold items
- Why does the property I want to mock need to be virtual?
- UserManager SendEmailAsync No Email Sent
- Only primitive types or enumeration types are supported in this context
- View PDF as part of the page
- Email model validation with DataAnnotations and DataType
- How to pass parameters to a custom ActionFilter in ASP.NET MVC 2?
- Correct way to use HttpContext.Current.User with async await
- what are the URLs for in claim-types