Unable to pass values to my ChildAction

Apr 9, 2013 at 7:53 PM
Hello

I am unable to pass values to my ChildAction. I have tried with both Html.Action and Html.RenderAction.


In my .cshtml file, I have a block like the following
 @{
                System.Web.Routing.RouteValueDictionary rv = new RouteValueDictionary();
                rv.Add("firstKey", "firstValue");

                Html.Action("CanTest", rv, true);
            }
However, in my "CanTest" ChildAction, the parameter is always null. Can you tell me what I am doing wrong?

Thanks
-Venu

PS : What is the recommended way to pass state back and forth between Parent and Child Actions