2012-05-31 70 views

回答

10

給你的錨的href值指向要重定向到控制器中的操作:

<div id="logo"> 
    <a href="@Url.Action("someaction", "somecontroller")"> 
     <img src="../../Content/img/logo3.png" alt="" /> 
    </a> 
</div> 
0
<a href="<%: Url.Content("~/Controllor/View") %>"> 
       <div id="logo"> 
       </div> 
</a> 
相關問題