Wednesday, November 23, 2011

Too much polymorphism for ActionLink?

@Html.ActionLink("Back To Program", "Details", "Program", new { Id = Model.ProgramPlan.Program.Id }, null) will take you to the Details action at the Program controller.

 
 

@Html.ActionLink("Back To Program", "Details", "Program", new { Id = Model.ProgramPlan.Program.Id }) will try to take you to the Details action at the current controller.

No comments:

Post a Comment