title: get viewdatadictionary value in partial view
body: <p>I have a partial view in which I am trying to get the values from the parent view. 
  This is what I am trying:</p>
  
  <pre><code> @Html.Partial("Shared", "Home", new ViewDataDictionary { { "9595959", "8sd8sds8das8d" } }) 
  </code></pre>
  
  <p>And this is the partial view:</p>
  
  <pre><code>      &lt;!-- Google Code for apply Conversion Page --&gt; &lt;script type="text/javascript"&gt;
     /* &lt;![CDATA[ */
     var google_conversion_id = "viewdata-number1";
     var google_conversion_language = "en";
     var google_conversion_format = "2";
     var google_conversion_color = "ffffff";
     var google_conversion_label = "viewdata-number2"; var google_conversion_value = 0;
     /* ]]&gt; */
     &lt;/script&gt;
     &lt;script type="text/javascript"  
     src="https://www.googleadservices.com/pagead/conversion.js"&gt;
     &lt;/script&gt;
     &lt;noscript&gt;
     &lt;div style="display:inline;"&gt;
     &lt;img height="1" width="1" style="border-style:none;" alt=""  
     src="https://www.googleadservices.com/pagead/conversion/viewdata-number1/?value=0&amp;amp;label=viewdata-number2&amp;amp;guid=ON&amp;amp;script=0"/&gt;
     &lt;/div&gt;
     &lt;/noscript&gt; 
  </code></pre>
  
  <p>Is it possible to get the value straight away? I don't have any model or controller assigned to the partial view.
  Thx in advance, Laziale</p>
  
  <p>Updated Code:</p>
  
  <pre><code>@{
      var variable = ViewData["First"];
          &lt;!-- Google Code for apply Conversion Page --&gt; &lt;script type="text/javascript"&gt;
     /* &lt;![CDATA[ */
     var google_conversion_id = variable;
     var google_conversion_language = "en";
     var google_conversion_format = "2";
     var google_conversion_color = "ffffff";
     var google_conversion_label = "f6vICKTT6gMQzNOf3gM"; var google_conversion_value = 0;
     /* ]]&gt; */
     &lt;/script&gt;
     &lt;script type="text/javascript"  
     src="https://www.googleadservices.com/pagead/conversion.js"&gt;
     &lt;/script&gt;
     &lt;noscript&gt;
     &lt;div style="display:inline;"&gt;
     &lt;img height="1" width="1" style="border-style:none;" alt=""  
     src="https://www.googleadservices.com/pagead/conversion/1002957260/?value=0&amp;amp;label=f6vICKTT6gMQzNOf3gM&amp;amp;guid=ON&amp;amp;script=0"/&gt;
     &lt;/div&gt;
     &lt;/noscript&gt; 
  }
  </code></pre>
  
  <p>You think that will work?</p>