pass parameter in mvc4 partial view

hildasienna

New Member
I created a partial view with google code and I want to send two parameters to that view.Here is the content for the partial view:\[code\] <!-- Google Code for apply Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 1234567; var google_conversion_language = "en"; var google_conversion_format = "2"; var google_conversion_color = "ffffff"; var google_conversion_label = "7df7df7sdfdf"; var google_conversion_value = http://stackoverflow.com/questions/13708793/0; /* ]]> */ </script> <script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1234567/?value=0&label=7df7df7sdfdf&guid=ON&script=0"/> </div> </noscript>\[/code\]Now instead of the static value for google_conversion_id and google_conversion_label I want to use two parameters which I'll sent from the main form. Here is how I call the partial view:@{ Html.RenderPartial("Google"); }Any idea how can I achieve that?Thx, Laziale
 
Back
Top