Javascript関数を介して単一のPageMethodを呼び出すテストWebアプリケーションがあります。
PageMethods.myMethod(params, onSuccess, onFailed);
urlRewritingを使用すると、機能しなくなります。だから、私はウェブを検索し、これをjsファイルに追加することを見つけました。
Pagemethods.set_path("/the_real_path.aspx");
ただし、これは機能しません。F12を使用してChromeでWeb開発者ツールを検索すると、404notfoundエラーが発生します。
何かアドバイスはありますか?助けていただければ幸いです
以下が行われます。
-ScriptManager EnablePageMethods = True
-Method is public and shared(static)
-Method is decorated with <WebMethod(True)>