私は何日も問題を抱えています。これが私の状況です:
であるGridview Template
フィールドがありImageButton
ます。ImageButton
をクリックするとモーダルがpop up Panel
開きます。私のパネルの中にキャンセル用のボタンがあります。
私が欲しいのは、ユーザーがキャンセルボタンをクリックしたときです。私は私の設定します
ImageButton.Visible = true;
しかし、このエラーのためにそれを行うことができないようです
Unable to cast object of type WebControls.ContentPlaceHolder to type WebControls.GridViewRow
protected void Button1_Click1(object sender, EventArgs e)
{
Button button = sender as Button;
GridViewRow GridViewRow = (GridViewRow)button.NamingContainer;
GridViewRow.FindControl("stopImageButton").Visible = true;
this.StopTimeNotesPanel_ModalPopupExtender.Hide();
}
助けてください