0

I have the following ActionLink

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

But it creates the following Link in the address bar http://localhost:1028/?Length=4 as opposed to what I expect it to be as http://localhost:1028/Home.

Have I done something wrong to cause this?

1 Answer 1

2

You're using the wrong overload of ActionLink. Try:

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

...hoping I've got my VB syntax right...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.