我用谷歌代码创建了一个局部视图,我想向该视图发送两个参数。以下是部分视图的内容:
<!-- 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 = 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>
现在,我想使用两个参数,而不是 google_conversion_id 和 google_conversion_label 的静态值,这两个参数将从主窗体发送。
以下是我如何称呼局部视图:
@{ Html.RenderPartial("Google"); }
知道如何实现吗?谢谢,拉齐亚莱