こんにちはみんな、iveは愚かな問題を抱えています。
カスタムハンドラーはAsp.NET開発サーバーで100%動作していますが、Comment / Find(AJAX呼び出しを介してユーザーを検索する)を実行しようとするたびにサイトをIIS 5.1に公開すると、ハンドラーの名前がわかります。 !! :)
このエラーが発生します:
ページが表示されないページアドレスが間違っているため、探しているページを表示できません。
次のことを試してください。
* If you typed the page address in the Address bar, check that it is entered correctly.
* Open the home page and then look for links to the information you want.
HTTP405-リソースは許可されていませんインターネットインフォメーションサービス
技術情報(サポート担当者向け)
* More information:
Microsoft Support
AJAX呼び出しの私のコードは次のとおりです。
function findUser(skip, take) {
http.open("post", 'Comment/FindUser', true);
//make a connection to the server ... specifying that you intend to make a GET request
//to the server. Specifiy the page name and the URL parameters to send
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader('Criteria', document.getElementById('SearchCriteria').value);
http.setRequestHeader("Skip", skip);
http.setRequestHeader("Take", take);
http.setRequestHeader("Connection", "close");
//display loading gif
document.getElementById('ctl00_ContentPlaceHolder1_DivUsers').innerHTML = 'Loading, Please Wait...<br /><img src="Images/loading.gif" /><br /><br />';
//assign a handler for the response
http.onreadystatechange = function() { findUserAction(); };
//actually send the request to the server
http.send(null);
}
誰か助けてもらえますか?