title: Generating a modal jQuery partial view with MVC4 does not work
body: <p>I like the way MVC4 manage the new logon screen: it is possible to have a modal dialog showed.</p>
  
  <p><img src="https://i.stack.imgur.com/NzQrF.png" alt="enter image description here"></p>
  
  <p>I tried to reproduce the same behavior in the same solution for another view. But it doesn't work because <strong>Request.QueryString["content"]</strong> is null. I don't know why. In fact, there is an action method called ContextDependentView (generated by the MVC template) where the trick occurred. Here it is:</p>
  
  <pre><code>    private ActionResult ContextDependentView()
      {
          string actionName = ControllerContext.RouteData.GetRequiredString("action");
          if (Request.QueryString["content"] != null)
          {
              ViewBag.FormAction = "Json" + actionName;
              return PartialView();
          }
          else
          {
              ViewBag.FormAction = actionName;
              return View();
          }
      }
  </code></pre>
  
  <p>If the value of <strong>Request.QueryString["content"]</strong> is not null then we display a partial view (modal jQuery) otherwise it is a classic view.</p>
  
  <p>Can someone help me understand why this is not working?</p>
  
  <p>PS: another thread already exists but without any solution.</p>