Hi all,
i want to know about the routeconfig file in mvc
please provide soultion regarding this
Thanks in Advance
please provide soultion regarding this
Thanks in Advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Nov 2, 2021, 1:49 AM
Hi Snehu,
ASP.NET MVC routing is a pattern matching system that is responsible for mapping incoming browser requests to specified MVC controller actions. Lets say you have hit request from browser like
http://localhost:4736/Book/Create
Above request will hit to Create Action method of BookController.
Please refer this thread which will help you to understand step by step,
https://www.c-sharpcorner.com/UploadFile/3d39b4/routing-in-mvc/
geetha geethaPosted Nov 1, 2021, 4:23 PM
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Table_book", action = "Index", id = UrlParameter.Optional }
);
}
}
Nilesh PatilPosted Oct 30, 2017, 8:58 AM
Ankit SharmaPosted Oct 30, 2017, 6:51 AM
Vighnesh GadekarPosted Oct 30, 2017, 6:34 AM
SandyPosted Oct 20, 2017, 9:37 AM