1

ScriptSharp で生成された Javascript は、クラス メソッド "LoadContent()" を見つけることができません。これのどこが間違っているのですか?

メソッドをプロトタイプに入れているようですが、これが必要かどうかはわかりません。どんな助けでも大歓迎です。

namespace Echo.Web.JScript
{
     [ScriptNamespace("Scripts")]
    public class MasterTrackerActions
     {
         private jQueryObject _source;

         public MasterTrackerActions(string fundCodeSourceId)
         {
             _source = jQuery.Select("#" + fundCodeSourceId);
             _source.Change(delegate
                 {
                     Script.Alert("Here we go"); //We see this fine.
                     LoadContent();
                 });
         }

         public void LoadContent()
         {
             Script.Alert("Do we get here?"); //Answer is no
         }
    }
}
4

1 に答える 1