2009-06-09 77 views
0

我有我的項目轉移到iis服務器的問題。在asp.net開發服務器上,所有路由都順利進行。現在我想遷移到iis服務器和我選擇標籤onchange屬性不起作用。當我嘗試從https://www.web.com/Manager/Authorized/Accounts/0得到使用asp.net mvc dropdownlist onchange routing

處有明顯的一頁,我在https://www.web.com/Manager/Authorized/Accounts/0/Manager/Authorized/Authorized/Accounts/13424

同樣的問題是與每個href屬性和Html.Actionlink幾乎解決了大部分結束,但我仍然不知道,如何路由onchange或onclick。

<%= Manager.MyConfiguration.Prefix%>是我的想法如何在那裏添加/ Manager /部分路徑(爲了不在本地devserver上使用它)。沒有這個部分,我只得到https://www.web.com/Authorized/Accounts/13424,這也是錯誤的。

+0

我想你應該發佈你的RouteTable和Controller.Action代碼 – 2009-06-09 13:46:29

回答

1

<%= Url.Content("~/Authorized/Authorized/Accounts/") %> 
1

我不是很肯定,如果我完全理解這個問題,但它似乎是你可以使用VirtualPathUtility類和做類似

'<%=VirtualPathUtiliy.ToAbsolute("~/Authorized/Authorized/Accounts/")%>' 
+ this.value