title: MVC Control.Visible
body: <p>i'm new in mvc and i want to show/hide a html control after a jquery ajax call. 
  <br> In ASP.NET is simple like set Label.Visible = false.</p>
  
  <p>i have a razor view with something like this:</p>
  
  <pre><code>    @if (ViewBag.Show)
      {
          Html.Label("Test");
      }
  
      &lt;input id="idClick" type="button" value="Click"/&gt;
  </code></pre>
  
  <p>and a script with jquery to call an action</p>
  
  <pre><code>    $("#idClick").click(function() {
              $.ajax({
                      url: '/Test/ShowLabel',
                      type: 'GET',
                      dataType: 'json'
                      }
                  });
  </code></pre>
  
  <p>In my index view i set:</p>
  
  <pre><code>    ViewBag.Show = false;
  </code></pre>
  
  <p>in the action:</p>
  
  <pre><code>    public void ShowLabel()
      {
          ViewBag.Show = true;
      }
  </code></pre>
  
  <p>but i can't get the label showed</p>
  
  <p>i want to avoid render the control and then apply a style to hide it</p>
  
  <p>How can i do this?</p>