title: How to hide a button or link in asp.net Mvc View
body: <p>i have this in my controller action in MVC</p>
  
  <pre><code>        if (Profileid == User.Identity.Name)
          {
             ViewBag.Data = true;
          }
  </code></pre>
  
  <p>i want to hide a button or link in my view when this condition is met.how do i go about this in my View. I am using Razor view. thanks</p>