asp.net mvc - <a> tag not working when Html.ActionLink is? -
i'm starting out mvc , need div become link page. whenever make link using tag href server error in '/' application message. when make piece of text link using html.actionlink, works flawlessly.
here's code div link doesn't want work:
<a href="../home/page1"> <div class = "col1"> function 1 </div> </a> please help!
i think u can use url.action address
<a href="@url.action("page1", "home")"><div class = "col1"> function 1 </div></a>
Comments
Post a Comment