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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -