When I try to get HomeController from View, it's always null, why ? Is it because I use CodeBehind (see my full source code Why my button click handler in codebehind is not called? )
public partial class Index : System.Web.Mvc.ViewPage<dynamic>
{
HomeController HomeController;
protected void Page_Load(object sender, EventArgs e)
{
HomeController = (HomeController)HttpContext.Current.Request.RequestContext.RouteData.Values["HomeController"];