Error when Binding value to MasterPage (MVC5)
<p>i write a method  BaseController. And HomeController inherated from it</p>

<pre><code> public abstract partial class BaseController : Controller
    {
        protected override void OnResultExecuted(ResultExecutedContext filterContext)
        {
            if (Session["GeneralUserFullname"] != null)
            {
                ViewData["Username"] = Session["GeneralUserFullname"];
            }

            base.OnResultExecuted(filterContext);
        }
    }
</code></pre>

<p>After in _Layout.cshtml. I call <strong>ViewData["Username"]</strong> to print name to place set Login. And i have debuged,  <strong>ViewData["Username"]</strong> can get right value. </p>

<p>But it always gives error: <strong><em>Child actions are not allowed to perform redirect actions.</em></strong></p>

<pre><code>Line 88:                 &lt;a class="dropdown-toggle" data-toggle="dropdown"&gt;
Line 89:                     &lt;img src="http://placehold.it/300"&gt;
Line 90:                     &lt;span&gt;@ViewData["Username"]&lt;/span&gt;
Line 91:                     &lt;i class="caret"&gt;&lt;/i&gt;
Line 92:                 &lt;/a&gt;
</code></pre>

<p>Please give a suggestions. Thanks</p>