0
我有一個問題瓦特/ Url.Action沒有指向正確的本地主機,有人請告知我如何能糾正這一點?Url.Action不指向本地主機
同樣的信息工作正常的 'Html.ActionLink'
@<li>@Html.ActionLink(cattext, "Topic", "Tutorial", New With {.categorypassed = "INTRO"}, vbNull)</li>
返回的鏈接:
http://localhost:62510/Tutorial/Topic?categorypassed=INTRO
但是,如果我用這個信息作爲 'Url.Action':
<a data-role="button" data-transition="fade" href="@Url.Action("Topic", "Tutorial", New With {.categorypassed = "INTRO"}, vbNull)" data-icon="arrow-l" data-iconpos="left">Back</a>
它返回一個假的本地主機:
1://localhost/Tutorial/Topic?categorypassed=INTRO
感謝Somna那是我的問題 – aeolian