Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
hello,

here i give my javascript.
when i use: modelpopupextender
JavaScript
<ajaxtoolkit:ModalPopupExtender ID="mpid" BehaviorID="myBID"  runat="server"
TargetControlID="img" PopupControlID="Pan1" CacheDynamicResults="true"
DropShadow="true" CancelControlID="img">

 
<script type="text/javascript" language="javascript">
 
function showModal(index) {
 

document.getElementById('<%=lab.ClientID%>').innerHTML = index;
var modal = $find("myBID");
modal.set_X(gx + 5); // Note: here, it invokes or goes to set_X function.  here i am getting gx value (for ex: 75).
modal.set_Y(gy);
modal.show();
 
}
 
}

when i use : popupcontrolextender:

asi used modelpopupextender , it is not allowing other asp.net control to be enable. once poped up , all other asp.net control got disabled. so i used popupcontrolextender to resolve below.
ASP.NET
<ajaxtoolkit:PopupControlExtender ID="PopEx"  runat="server"
TargetControlID="img" BehaviorID="myBID"
PopupControlID="Pan1"
Position="Bottom" />

when i debug tha javascript function.
everthing works similar when i used modelpopupextender.

but here,

modal.set_X(gx + 5); Note: here, here also i am getting gx value (for ex: 75) , but,it does not invoke or does not go to set_X function. becuase of this my popup is not working. once if it goes set_X function, it will work.

why it is not inovoking. how to solve. help needed.
Posted
Updated 9-Jan-14 19:05pm
v2
Comments
njammy 10-Jan-14 20:14pm    
Post some more example of markup (controls) that are not enabled and your code behind.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900