Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 21, 2012 12:45 PM by camilord
Member
5 Points
24 Posts
Dec 21, 2012 09:41 AM|LINK
hi..
i want to have link like..
<a href="http://localhost:0000/home/blog/1#comments">2 comments</a>
how will i create that kind of link from ActionLink() ?
@Html.ActionLink("2 comments", "Details", new { id=item.ID })
any answers please?
Contributor
2366 Points
381 Posts
Dec 21, 2012 09:55 AM|LINK
Hi
you can do it like this :
<a href="@Url.Action("Details", "yourcontroler", new { id=item.ID })">2 comments</a>
http://www.sambeauvois.be
Star
14412 Points
2452 Posts
Dec 21, 2012 10:22 AM|LINK
Hi,
Check this site for solution:
http://stackoverflow.com/questions/274586/including-an-anchor-tag-in-an-asp-net-mvc-html-actionlink
Dec 21, 2012 12:45 PM|LINK
thanks... :)
camilord
Member
5 Points
24 Posts
creating links
Dec 21, 2012 09:41 AM|LINK
hi..
i want to have link like..
how will i create that kind of link from ActionLink() ?
@Html.ActionLink("2 comments", "Details", new { id=item.ID })any answers please?
sam_xiii
Contributor
2366 Points
381 Posts
Re: creating links
Dec 21, 2012 09:55 AM|LINK
Hi
you can do it like this :
<a href="@Url.Action("Details", "yourcontroler", new { id=item.ID })">2 comments</a>http://www.sambeauvois.be
raju dasa
Star
14412 Points
2452 Posts
Re: creating links
Dec 21, 2012 10:22 AM|LINK
Hi,
Check this site for solution:
http://stackoverflow.com/questions/274586/including-an-anchor-tag-in-an-asp-net-mvc-html-actionlink
rajudasa.blogspot.com || blog@opera
camilord
Member
5 Points
24 Posts
Re: creating links
Dec 21, 2012 12:45 PM|LINK
thanks... :)