Setting ModalPopupExtender TargetControlID to LIstView Button

后端 未结 1 1187
不思量自难忘°
不思量自难忘° 2021-01-26 03:35

I am wondering how I am able to set the TargetControlID of my ModalPopupExtender to the Button on my ListView.

The button that I

1条回答
  •  感动是毒
    2021-01-26 04:14

    You could use java-script to do the job instead:

    Open pop-up
    Close pop-up
    
    
    

    UPDATE (using server side) You need to set a fake server button(display: none) as a target control id to your popup extender first:

     

    on your code behind whenever you want to display or close the popup, you just need to call the following functions:

      mp1.Show();    //to display popup
    
      mp1.Hide()     //to close popup
    

    0 讨论(0)
提交回复
热议问题