boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

Create a URL based on a Route Data defined Example

Updated on     Kisan Patel

To create a url based on route data defined, we can use @Url.RouteUrl method.

Let’s assume that following route has been defined

routes.MapRoute(
     name: "MyRoute",
     url: "MyStudents/{action}/{id}",
     defaults: new { controller = "PersonalDetail", action = "Create", id = UrlParameter.Optional }
);

To generate the url based on above Route, we can use @Url.RouteUrl method.

@Url.RouteUrl("MyRoute")

the above code will generate following url

/MyStudents/outgoingurl

Because, we have not specified any parameters for controller and action method in the above RouteUrl
method so the current page controller and action method is taken as default value.

@Url.RouteUrl("MyCustomRoute", new { action = "Index", id = 54, Name = "Kisan" })

the above code will generate following url

/MyStudents/Index/54?Name=Kisan


ASP.NET MVC

Leave a Reply