I have problem with ActionLink. I’d like to pass to my ActionLink parameter for my MessageController, for Edit action: to generate somthing like this /MessagesController/Edit/4
So I have ListView control with binding expression:
and how to pass this ID to ActionLink as parameter to my Controller Edit action? This doesn’t work: , null) %>
Try this
You need to put it in the RouteData to get it to show up. Note I am assuming id is one of your route parts that is in your route definition.