ModalPopupExtender OK Button click event not firing?

后端 未结 8 1432
旧巷少年郎
旧巷少年郎 2020-12-14 00:04

I have a Button inside an UpdatePanel. The button is being used as the OK button for a ModalPopupExtender. For some reason, the button click event is not firing. Any idea

8条回答
  •  情歌与酒
    2020-12-14 00:54

    Aspx

    
    
    
    //Codebehind    
    protected void OkButton_Clicked(object sender, EventArgs e)
        {
    
            modalPop.Hide();
            //Do something in codebehind
        }
    

    And don't set the OK button as OkControlID.

提交回复
热议问题