我已經設置了兩個自定義擴展來啓用IIS6中的MVC。從RequestContext解析MVC路由自定義文件擴展名
所以網站可以與任一類似URL訪問...
mysite/mycontroller.europe/myaction
或像...
mysite/mycontroller.america/myaction
什麼是最可靠的方法從RequestContext
實例中找到擴展名?
所以我想能夠寫類似...
var location = reqContext.......GetExtenstion(); // location = "europe"
,顯然具有即使網站的設置/目錄變化不大的工作。
正是我在找的東西!再次感謝你 – fearofawhackplanet 2011-05-19 11:45:07