示例#1
0
        public ActionResult DataOfChildActionValueProvider()
        {
            ControllerContext.RouteData.Values["Foo"] = "abc";
            ControllerContext.RouteData.Values["Bar"] = "ijk";
            ControllerContext.RouteData.Values["Baz"] = "xyz";

            ChildActionValueProvider valueProvider =new ChildActionValueProvider(ControllerContext);
            return View(valueProvider);
        }
示例#2
0
        public ActionResult DataOfChildActionValueProvider()
        {
            ControllerContext.RouteData.Values["Foo"] = "abc";
            ControllerContext.RouteData.Values["Bar"] = "ijk";
            ControllerContext.RouteData.Values["Baz"] = "xyz";

            ChildActionValueProvider valueProvider = new ChildActionValueProvider(ControllerContext);

            return(View(valueProvider));
        }