7
我正在使用asp.net mvc3。我有一個像下面的操作鏈接:創建https actionlink
@Html.ActionLink("Yes", "Admin", "Foo", null, new { @class = "link" })
我怎麼能修改此作爲反對到http創造HTTPS鏈接,因爲我已經把我與[RequireHttps]
我正在使用asp.net mvc3。我有一個像下面的操作鏈接:創建https actionlink
@Html.ActionLink("Yes", "Admin", "Foo", null, new { @class = "link" })
我怎麼能修改此作爲反對到http創造HTTPS鏈接,因爲我已經把我與[RequireHttps]
自從看了documentation控制器動作或Visual Studio爲您提供的Intellisense?
@Html.ActionLink(
"Yes", // linkText
"Admin", // actionName
"Foo", // controllerName
"https", // protocol
null, // hostName
null, // fragment
null, // routeValues
new { @class = "link" } // htmlAttributes
)
牛奶碟,表2 – noelicus
你或許應該閱讀[這](http://blog.stevensanderson.com/2008/08/05/adding-httpsssl-support-to-aspnet-mvc-routing/) – MilkyWayJoe
什麼路線定義看起來像? – Nathan