Asp.net Mvc configurable Html.ActionLink controller/method

Posted by Andrew Florko on Stack Overflow See other posts from Stack Overflow or by Andrew Florko
Published on 2010-05-07T09:09:59Z Indexed on 2010/05/07 9:58 UTC
Read the original article Hit count: 353

Filed under:
|
|

Hello everybody,

I have ascx partial view with html-layout like that

<%=Html.ActionLink<PersonController>(x => x.Publications(param1, param2, ... )) %>

My ascx is pretty big & I'd like to reuse it, changing controller/method in Html.ActionLink with another controller/method. Method of another controller has the same signature as PersonController.Publications. Please, suggest me the best way how to make controller/method configurable for my layout.

Thank you in advance

© Stack Overflow or respective owner

Related posts about mvc

Related posts about ASP.NET