Q:

C# Asp.NET Get URL Parameters

How I can get the number 68 of the following link? http://localhost:54547/Home/Details/68
I had a DB whit table "Modules", in each module i had content(that is other table in DB) . So when i click in see Contents, it pass a Module ID (that i click) for associate to Content ( localhost:54547/Home/Details/68). When I click for "Create a New Content", i want that the Module ID pass for the next link.
Thanks for help
I am programing in Asp.NET using C#

A:

You can get this from the RouteData:
var url = Url.RequestContext.RouteData.Values["id"];

