title: how to display dynamic text to @Html.Lable from Controller
body: <p>I have </p>
  
  <pre><code>public ActionResult Index()
          {
              ViewBag.TotalRecords = _tabmasterService.Count();
              return View(_tabmasterService.GetTabMasterList(10, 1));
          }
  </code></pre>
  
  <p>now in Index.cshtml</p>
  
  <pre><code> @Html.Label("Set from controller", Convert.ToString(ViewBag.TotalRecords))
  </code></pre>
  
  <p>but this will gives me an error.</p>
  
  <blockquote>
    <p><strong>Compiler Error Message: CS1973:</strong> 'System.Web.Mvc.HtmlHelper' has no applicable method named 'Label' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.</p>
  </blockquote>