2

更新パネルで spgridviewpager で spgridview を使用しています。aspx ページで c# を使用してポストバックする必要があります。spgridview でボタン フィールドを使用しました。ボタン フィールドをクリックしたときに、C# または JavaScript を使用してポストバック イベントを発生させる必要があります。

プログラムでそれを行う方法を知っている人はいますか?

4

3 に答える 3

3

これを説明する非常に優れた記事がウェブ上にいくつかあるので、リンクを使用して質問に答えさせてください。

于 2011-04-07T05:19:57.990 に答える
2

ボタンのプロパティに移動すると、ポストバック URL が見つかります。そうでない場合は、rowCommand を使用してボタン イベントを取得します。

于 2011-04-07T06:04:17.450 に答える
2

I think you can use triggers after the content template of update panel.

One more simple suggestion:

If you just want to cause a postback and to do nothing after postback, simply double click the button in the design view, you will get an onbuttonclick event generated in the code behind page. Don't write anything inside that button click event block. The page will get posted onclicking the button. If you want to implement something, write the code inside the button click event.

于 2011-04-07T06:13:59.940 に答える