Passing object by using ViewDataDictionary instance? <p>I got one small doubt,that is the following method adds object to ViewData Model property. </p> <pre><code> public ActionResult StronglyTypedView() { var obj = new MvcRouting.Models.Student(); obj.age = 24; obj.name = "prab"; ViewData.Model = obj; return View(); } </code></pre> <p><code>ViewData property</code> return type in <code>ViewDataDictionary</code>.So i created instance of <code>ViewDataDictionary</code> and assigned object to <code>Model</code> property.But its not working,how to solve this?</p> <pre><code>public ActionResult StronglyTypedView() { var obj = new MvcRouting.Models.Student(); obj.age = 24; obj.name = "prab"; var DicObj = new ViewDataDictionary(); DicObj.Model = obj; return View(); } </code></pre>