I have created a new control VidController
public class VidController : Controller
{
public ActionResult GetVids()
{
return View();
}
}
Right clicked inside the method and created View with default name GetVids. Now when i try to open ~/Vid/GetVids there is no page opening…
What i have to set in Global file?
Instead of opening
~/VidController/GetVidsin your browser you could try/Vid/GetVids. In ASP.NET MVC the standard convention is that theControllersuffix is used for the class name but removed when resolving the route.When you call
VidController/GetVids, the routing engine is trying to find a controller namedVidControllerControllerwhich obviously doesn’t exist.