更新パネル内にグリッドビューが含まれています。グリッド内のボタンを使用してグリッドビューのレコードを編集し、パネルポストバック(__doPostBack)を更新すると、グリッドビュー用のデータセットを更新し、新しいデータソースでgriviewをリフレッシュしようとしますが、次のエラーが発生します。更新パネル内のGridViewをリフレッシュ
次のように私はすべてのアイデア、
gvwSearchResult.DataSource = dsP1.prSearchItem;
gvwSearchResult.DataBind();
UpdatePanel1.Update();
Uncaught Sys.WebForms.PageRequestManagerServerErrorException:
Sys.WebForms.PageRequestManagerServerErrorException:
Invalid postback or callback argument.
Event validation is enabled using <pages enableEventValidation="true"/> 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.
Sys.WebForms.PageRequestManager._endPostBackScriptResource.axd:307
Sys.WebForms.PageRequestManager._parseDeltaScriptResource.axd:749
Sys.WebForms.PageRequestManager._onFormSubmitCompletedScriptResource.axd:584
(anonymous function)ScriptResource.axd:22
(anonymous function)ScriptResource.axd:1519
Sys.Net.WebRequest.completedScriptResource.axd:2924
_onReadyStateChange
を私のGridViewのを再バインド?
編集ボタンは自動生成ですか、それともテンプレートにありますか? – mslliviu
テンプレートフィールド – Roshe