奇妙な問題があります。
Page.IsPostBackは、URLの書き換え後に常にfalseを返します。
次のような関数にリンクするリンクを使用しています。
<a href="#" onclick="return getHelp('4','P')">
これはjsファイルに行き、jsはpagemethodの下を呼び出します。
<script>
function getHelp(id, type) {
PageMethods.displayHelp(id, type, CallSuccess, CallFailed);
}
</script>
これは私がjavascriptからアクセスしようとしているpageMethodです。
[System.Web.Services.WebMethod]
public static string displayHelp(string id, string type)
{
response.writeline(id+type);
}
urlrewritingを使用しない場合は、完璧に機能します。ただし、urlrewritingを使用すると、ポストバックを認識できませんでした。
どんな助けでもいただければ幸いです