Question

J'ai le lien ActionLink suivant

Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"})

Mais il crée le lien suivant dans la barre d'adresse http: // localhost: 1028 /? Length = 4 contrairement à ce que j'attendais de ce qu'il soit http: // localhost: 1028 / Home .

Ai-je commis une erreur en provoquant cela?

Était-ce utile?

La solution

Vous utilisez la surcharge incorrecte d'ActionLink. Essayez:

Html.ActionLink("Home", "Index", "Home", Nothing, New With {.class = "tab"})

... en espérant avoir ma syntaxe VB correcte ...

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top