I am using asp.net MVC.
I have edit page url like {controller}/Edit/2
so on the view page how can I get the ID from this URL?
I'm gonna put a link to redirect to some page with sending above ID.
EDIT Like
<%=Html.ActionLink("name", "Action", "Controller", new{ ID = ? } ) %>