3

Hi I want to href this code so all the links are clickable:

<td>@item.Link</td> 

How do I use the href here?

3 Answers 3

2

This will do the job for you:

<td><a href="@item.Link">My Href</a></td> 
Sign up to request clarification or add additional context in comments.

Comments

0

If you mean you want to use this value as the href value for your anchor, you may use the following as an example:

<td><a href="@item.Link">YOUR_LINK_TEXT</a></td> 

Comments

0

You can use the ActionLink helper

@Html.ActionLink("<td>" + item.Link + "</td>", "myaction", "mycontroller") 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.