私は更新パネル内にリストビューとデータポーカーを持っています。ボタンタイプはボタンとして設定されています。問題は、次へ/前へボタンをクリックしたときに次のエラーが発生することです。ボタンタイプがデータペイジャーのボタンの場合、無効なポストバック
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
私はいくつかの検索を行い、EventValidationをfalseに設定する必要があることを発見しました。しかし、私はこれを行うときに空白のページを取得します。
どうすればいいのか教えてください。
ありがとうございます。
は "<%@ページEnableEventValidation =" 偽のイベントの検証をオフにしてください"%>。メインコードブロックを表示すると良いでしょう。 – vladimir77