title: MVC Html.Raw empty in Html.Action
body: <p>In the controller, I assign a string to ViewBag:</p>
  
  <p>HomeController:</p>
  
  <pre><code>ViewBag.Parameters = "new { needSearch = true }";
  </code></pre>
  
  <p>Then in the View, I did this:</p>
  
  <pre><code>@Url.Action("doSearch", Html.Raw(ViewBag.Parameters))
  </code></pre>
  
  <p>Then I took a look at the development tools, the output was </p>
  
  <pre><code>/Home/doSearch
  </code></pre>
  
  <p>and the querystring (i.e. needSearch=true) is missing</p>
  
  <p>I did another test, and I did this to check if it can print the ViewBag:</p>
  
  <pre><code> @Html.Raw(ViewBag.Parameters)
  </code></pre>
  
  <p>And the above code output the disired result:</p>
  
  <pre><code>needSearch=true
  </code></pre>
  
  <p>I made a fiddle sample:</p>
  
  <p><a href="https://dotnetfiddle.net/FF1iGV" rel="nofollow">https://dotnetfiddle.net/FF1iGV</a></p>
  
  <p>As you see in the sample </p>
  
  <p>If I call <code>@Url.Action("doSearch", Html.Raw(ViewBag.Parameters))</code>, the querystring is missing</p>
  
  <p>What is the problem?</p>