After successfully configure route in RouteConfig.cs need to register this configuration in Global.asax of AppStart() method.
Below code is used to register Route config in Global.asax
Below code is used to register Route config in Global.asax
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.Web.Optimization;using System.Web.Routing;namespace MVCTest{public class MvcApplication : System.Web.HttpApplication{protected void Application_Start(){RouteConfig.RegisterRoutes(RouteTable.Routes);}}
No comments:
Post a Comment