Interviews14 answers
What is routing .
14 Answers
Routing is a Root Action Decide the Path when your application run
Shailesh UkePosted May 27, 2015, 6:18 AM EDT
Routing is mechanism used for mapping the URL with the action and controller method like below
for Example
http://localhost/home/index
controller is Home
Action Method is index
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
and if you want to change it
http://localhost/home/My page
then it will be
routes.MapRoute(
name: "Index",
url: "{mypage}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Shuvojit HalderPosted May 18, 2015, 10:12 PM EDT
Basically, Routing is a pattern matching system that monitor the incoming request and figure out what to do with that request. At runtime, Routing engine use the Route table for matching the incoming request's URL pattern against the URL patterns defined in the Route table. You can register one or more URL patterns to the Route table at Application_Start event. MVC5 also supports attribute routing, to know more refer Attribute Routing in ASP.NET MVC.
Mohan GPosted Apr 17, 2015, 5:30 AM EDT
Basically, Routing is a pattern matching system that monitor the incoming request and figure out what to do with that request. At runtime, Routing engine use the Route table for matching the incoming request's URL pattern against the URL patterns defined in the Route table. You can register one or more URL patterns to the Route table at Application_Start event. MVC5 also supports attribute routing, to know more refer Attribute Routing in ASP.NET MVC.
Mohan GPosted Apr 17, 2015, 5:30 AM EDT
.
Shravan KumarPosted Apr 17, 2015, 2:42 AM EDT
.
Shravan KumarPosted Apr 17, 2015, 2:42 AM EDT
Routing is a pattern matching system that monitor the incoming request and figure out what to do with that request. At runtime, Routing engine use the Route table for matching the incoming request's URL pattern against the URL patterns defined in the Route table.
Posted Apr 14, 2015, 7:02 PM EDT
http://www.dotnet-tricks.com/Tutorial/mvc/HXHK010113-Routing-in-Asp.Net-MVC-with-example.html
Munesh SharmaPosted Mar 29, 2015, 8:13 PM EDT
http://beginmvc.blogspot.com/2015/03/day-2-installing-aspnet-mvc-4.html
Shivam ShuklaPosted Mar 18, 2015, 5:12 AM EDT
Routing enables you to use URLs that do not have to map to specific files in sajidlkhan lodi JI you are little bit Wrong
Shivam ShuklaPosted Feb 27, 2015, 9:43 PM EST
Routing is mechanism used for mapping the URL with the action and controller method like below
for Example
http://localhost/home/index
controller is Home
Action Method is index
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Navin KumarPosted Feb 27, 2015, 5:18 AM EST
Routing is for mapping to file with that we can use our specific url name without extention like ".aspx"
sajidlkhan lodiPosted Feb 9, 2015, 1:17 AM EST
http://www.c-sharpcorner.com/UploadFile/krishnasarala/routing-in-mvc/
Munesh SharmaPosted Jan 29, 2015, 2:12 AM EST
ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs that are descriptive of the user's action and therefore are more easily understood by users.
The ASP.NET MVC framework and ASP.NET Dynamic Data extend routing to provide features that are used only in MVC applications and in Dynamic Data applications.
Shivam ShuklaPosted Jan 21, 2015, 3:53 AM EST





