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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ankit SharmaRank #141 · 16.1K reputationPosted Oct 30, 2017, 2:51 AM EDT
SandyRank #2,015 · 718 reputationPosted Oct 20, 2017, 5:37 AM EDT
Vighnesh Gadekar56 reputationPosted Oct 30, 2017, 2:34 AM EDT
Nilesh PatilRank #1,129 · 1.6K reputationPosted Oct 30, 2017, 4:58 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 1, 2021, 9:49 PM EDT
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 geethaRank #7,130 · 248 reputationPosted Nov 1, 2021, 12:23 PM EDT
{
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 }
);
}
}