1

カスタムコントローラーでGetDictionaryItem()関数にアクセスしたいので、Contextオブジェクトが必要です。プレーンなjqueryAjaxによってカスタムコントローラーからデータにアクセスしています。

以下のように、SurfaceControllerのGetdictionaryItemにアクセスできます。

var dictionaryHelper = new DictionaryHelper(_routableRequestContext.Application);
        string dearDictonaryItem = dictionaryHelper.GetDictionaryItemValueForLanguage("Common/Dear", Thread.CurrentThread.CurrentCulture.Name, "Dear");

しかし、カスタムコントローラーにも必要です。

ありがとう、シャー

4

1 に答える 1

0

サーフェスコントローラとしてカスタムコントローラを作成し、

@seraphymに感謝します

于 2012-05-30T07:32:45.343 に答える