I need razor to generate a href links. This code works fine:

```
@Html.ActionLink("Questions", "Questions", "SectionPartials")

```

How do I set an id element to the a href tag? I already tried:

```
@Html.ActionLink("Questions", "Questions", "SectionPartials", new { id= "new-link" })

```

Which adds a id to the a href, but the navigations won't work anymore. This also gives a error in the code (but does compile tho)

**Server error:**
[![enter image description here](https://i.stack.imgur.com/KzWqg.png)](https://i.stack.imgur.com/KzWqg.png)

**Code error**
[![enter image description here](https://i.stack.imgur.com/nCWqJ.png)](https://i.stack.imgur.com/nCWqJ.png)

Coudn't find any more information on this issue.. If there is some information missing (like controller/view(?)), I am happy to add those!

Thanks