How to get TargetControlID from gridview to Ajax modalPopupExtender?
-
Hi, I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ? Please help.
suchita
-
Hi, I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ? Please help.
suchita
Sir, set the TargetControlID to a hidden linkbutton id and in the gridview use javascript to open the popup
<a href="javascript:;" onclick="OpenDialog();" >Click me</a>
<script type="text/javascript" >
function OpenDialog() {
$find('<%= extender.ClientID %>').show();
}
</script>100 :rose:
Help people,so poeple can help you.
-
Hi, I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ? Please help.
suchita
Place one button with visiblility off. And give that button Id as target Control ID.