日期:2014-05-18  浏览次数:20372 次

mvc3 使用iframe问题
html: '<iframe src="@{Html.RenderAction("SendTitle", "Cargo");}" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>',

这个是extJS的脚本中使用Html.RenderAction来跳转,不过这样不行,有人遇到过这种情况吗

------解决方案--------------------
为什么非得用Html类的方法呢,直接写也可以用。
HTML code

<iframe id="miniWindow_iframe" name="miniWindow_iframe" src="" style="width:856px;height:300px;margin:0px;" frameborder="0" scrolling="no" allowtransparency="true" ></iframe>

@:<a href="javascript:void(0);" onclick="openMiniWindow('标题','消息','/Home/ShowEvaluatePanel/@item["id"]');">查看</a>